Skip to content

Commit

Permalink
Tests: Perform cleanup after finished Jest migration
Browse files Browse the repository at this point in the history
  • Loading branch information
gziolo committed Sep 29, 2017
1 parent b33f7f8 commit 11be7ed
Show file tree
Hide file tree
Showing 19 changed files with 32 additions and 427 deletions.
2 changes: 0 additions & 2 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ test:
files:
- server/**/test/*.js
- server/**/test/*.jsx
- MOCHA_FILE=./test-results-test.xml npm run test-test -- -R mocha-junit-reporter -t $CIRCLE_NODE_TOTAL -i $CIRCLE_NODE_INDEX:
parallel: true
post:
- mkdir -p $CIRCLE_TEST_REPORTS/junit/ && find . -type f -regex "./test-results.*\.xml" -exec cp {} $CIRCLE_TEST_REPORTS/junit/ \;:
parallel: true
Expand Down
58 changes: 0 additions & 58 deletions npm-shrinkwrap.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 1 addition & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@
"poststart": "npm run -s env -- cross-env node $NODE_ARGS build/bundle.js",
"pretest": "npm run -s install-if-deps-outdated",
"reformat-files": "node bin/reformat-files.js",
"test": "run-s -s test-client test-server test-test",
"test": "run-s -s test-client test-server",
"test-client": "jest -c=test/client/jest.config.js",
"test-client:ci": "cross-env TEST_REPORT_FILENAME=./test-results-client.xml jest -c=test/client/jest.config.ci.js -w=2",
"test-client:watch": "npm run -s test-client -- --watch",
Expand All @@ -235,8 +235,6 @@
"test-server:ci": "cross-env TEST_REPORT_FILENAME=./test-results-server.xml jest -c=test/server/jest.config.ci.js -w=2",
"test-server:coverage": "npm run -s test-server -- --coverage",
"test-server:watch": "npm run -s test-server -- --watch",
"test-test": "cross-env NODE_ENV=test NODE_PATH=test:client:client/extensions TEST_ROOT=test node test/runner.js",
"test-test:watch": "nodemon -e js,jsx --exec npm run -s test-test",
"translate": "i18n-calypso --format pot --output-file ./calypso-strings.pot -e date \"**/*.js\" \"**/*.jsx\" \"!build/**\" \"!node_modules/**\" \"!public/**\" \"!client/extensions/**\"",
"update-deps": "npm run -s rm -- node_modules && npm run -s rm -- npm-shrinkwrap.json && npm install && npm install && npm shrinkwrap --dev"
},
Expand Down Expand Up @@ -270,9 +268,6 @@
"jscodeshift": "0.3.30",
"md5-file": "3.1.0",
"mixedindentlint": "1.2.0",
"mocha": "3.1.0",
"mocha-junit-reporter": "1.12.0",
"mockery": "1.7.0",
"nock": "8.0.0",
"nodemon": "1.4.1",
"prettier": "github:automattic/calypso-prettier#70f962b0",
Expand Down
5 changes: 0 additions & 5 deletions test/.eslintrc.json

This file was deleted.

19 changes: 0 additions & 19 deletions test/boot-test.js

This file was deleted.

2 changes: 1 addition & 1 deletion test/client/jest.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
],
"rootDir": "./../../",
"testEnvironment": "node",
"testMatch": [ "**/client/**/test/*.js?(x)" ],
"testMatch": [ "<rootDir>/client/**/test/*.js?(x)" ],
"testURL": "https://example.com",
"setupTestFrameworkScriptFile": "<rootDir>/test/client/setup-test-framework.js",
"verbose": false
Expand Down
8 changes: 4 additions & 4 deletions test/integration/jest.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
"rootDir": "./../../",
"testEnvironment": "node",
"testMatch": [
"**/bin/**/integration/*.js",
"**/client/**/integration/*.js",
"**/server/**/integration/*.js"
"<rootDir>/bin/**/integration/*.js",
"<rootDir>/client/**/integration/*.js",
"<rootDir>/server/**/integration/*.js",
"<rootDir>/test/test/helpers/**/integration/*.js"
],
"setupTestFrameworkScriptFile": "<rootDir>/test/integration/setup-test-framework.js",
"verbose": true
}
3 changes: 0 additions & 3 deletions test/integration/setup-test-framework.js

This file was deleted.

17 changes: 0 additions & 17 deletions test/load-suite.js

This file was deleted.

10 changes: 0 additions & 10 deletions test/run-mocha.js

This file was deleted.

140 changes: 0 additions & 140 deletions test/runner.js

This file was deleted.

7 changes: 5 additions & 2 deletions test/server/jest.config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"collectCoverageFrom": [ "**/server/**/*.js?(x)" ],
"collectCoverageFrom": [ "server/**/*.js?(x)" ],
"coveragePathIgnorePatterns": [
"<rootDir>/server/devdocs/search-index.js"
],
"modulePaths": [
"<rootDir>/test/",
"<rootDir>/server/",
Expand All @@ -8,7 +11,7 @@
],
"rootDir": "./../../",
"testEnvironment": "node",
"testMatch": [ "**/server/**/test/*.js?(x)" ],
"testMatch": [ "<rootDir>/server/**/test/*.js?(x)" ],
"timers": "fake",
"setupTestFrameworkScriptFile": "<rootDir>/test/server/setup-test-framework.js",
"verbose": true
Expand Down
Loading

0 comments on commit 11be7ed

Please sign in to comment.