diff --git a/jest.config.js b/jest.config.js new file mode 100644 index 0000000000..0e3e92d900 --- /dev/null +++ b/jest.config.js @@ -0,0 +1,10 @@ +'use strict'; + +module.exports = { + testURL: 'http://localhost/', + collectCoverage: true, + coveragePathIgnorePatterns: ['test'], + moduleFileExtensions: ['js', 'json'], + testMatch: ['**/test/**/*.test.js'], + setupFilesAfterEnv: ['/setupTest.js'], +}; diff --git a/jest.config.json b/jest.config.json deleted file mode 100644 index 4a9f5bedab..0000000000 --- a/jest.config.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "testURL": "http://localhost/", - "collectCoverage": true, - "coveragePathIgnorePatterns": ["test"], - "moduleFileExtensions": ["js", "json"], - "testMatch": ["**/test/**/*.test.js"], - "setupFilesAfterEnv": ["/setupTest.js"] -} diff --git a/package.json b/package.json index 4f5e967367..94d0633c4b 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "scripts": { "lint": "eslint bin lib test examples client-src", "pretty": "prettier --loglevel warn --write \"**/*.{js,css,md,json,yml}\"", - "test": "jest --config jest.config.json --runInBand", + "test": "jest --runInBand", "prepare": "rimraf ./ssl/*.pem && npm run -s transpile:index && npm run -s build:live && npm run -s build:index && npm run -s build:sockjs", "transpile:index": "babel client-src/default --out-dir client --ignore *.config.js", "build:index": "webpack ./client-src/default/index.js -o client/index.bundle.js --color --config client-src/default/webpack.config.js",