Skip to content

Commit 0146939

Browse files
committed
polish(auth): Fix 'global' script name syntax
Because: - Using ':' in script name has a specific meaning in yarn workspaces, which denotes a global script. - We shouldn't repeat test frame functionality with script names. This Commit: - Removes the global script - Removes test:jest:watch, since you can just pass --watch to yarn, ie `yarn test-jest --watch` - Removes test:jest:coverage, since you can just pass --coverage to the yarn command. See https://yarnpkg.com/features/workspaces#global-scripts
1 parent 0403c92 commit 0146939

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

packages/fxa-auth-server/package.json

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,10 @@
3636
"start": "yarn check:mysql && pm2 start pm2.config.js && yarn check:url localhost:9000/__heartbeat__",
3737
"restart": "pm2 restart pm2.config.js",
3838
"test": "VERIFIER_VERSION=0 scripts/test-local.sh",
39-
"test:jest": "jest --no-coverage --forceExit",
40-
"test:jest:unit": "jest --no-coverage --forceExit --testPathIgnorePatterns='verification-reminders'",
41-
"test:jest:integration": "jest --no-coverage --forceExit --testPathPattern='verification-reminders'",
42-
"test:jest:watch": "jest --watch --no-coverage",
43-
"test:jest:coverage": "jest --coverage --forceExit",
44-
"test:jest:ci": "JEST_JUNIT_OUTPUT_DIR='../../artifacts/tests/fxa-auth-server' JEST_JUNIT_OUTPUT_NAME='jest-results.xml' jest --coverage --forceExit --ci --reporters=default --reporters=jest-junit",
39+
"test-jest": "jest --no-coverage --forceExit",
40+
"test-jest-unit": "jest --no-coverage --forceExit --testPathIgnorePatterns='verification-reminders'",
41+
"test-jest-integration": "jest --no-coverage --forceExit --testPathPattern='verification-reminders'",
42+
"test-jest-ci": "JEST_JUNIT_OUTPUT_DIR='../../artifacts/tests/fxa-auth-server' JEST_JUNIT_OUTPUT_NAME='jest-results.xml' jest --coverage --forceExit --ci --reporters=default --reporters=jest-junit",
4543
"test-unit": "VERIFIER_VERSION=0 TEST_TYPE=unit scripts/test-ci.sh",
4644
"test-integration": "VERIFIER_VERSION=0 TEST_TYPE=integration scripts/test-ci.sh",
4745
"test-integration-v2": "VERIFIER_VERSION=0 TEST_TYPE=integration-v2 scripts/test-ci.sh",

0 commit comments

Comments
 (0)