Skip to content

Commit

Permalink
test(repo): Add cmd to clear test cache (#1880)
Browse files Browse the repository at this point in the history
Co-authored-by: Lennart <[email protected]>
  • Loading branch information
tmilewski and LekoArts authored Oct 19, 2023
1 parent b09b66e commit d003418
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .changeset/gorgeous-radios-switch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"release:staging": "TURBO_FORCE=true FORCE_COLOR=1 npm run build && changeset publish --tag staging --no-git-tag",
"release:verdaccio": "if [ \"$(npm config get registry)\" = \"https://registry.npmjs.org/\" ]; then echo 'Error: Using default registry' && exit 1; else TURBO_FORCE=true TURBO_CONCURRENCY=4 npm run build && changeset publish --no-git-tag; fi",
"test": "FORCE_COLOR=1 turbo test --concurrency=${TURBO_CONCURRENCY:-80%}",
"test:cache:clear": "FORCE_COLOR=1 turbo test:cache:clear --continue --concurrency=${TURBO_CONCURRENCY:-80%}",
"test:ci": "FORCE_COLOR=1 turbo test --concurrency=${TURBO_CONCURRENCY:-80%}",
"test:integration:base": "DEBUG=1 npx playwright test --config integration/playwright.config.ts",
"test:integration:deployment:nextjs": "DEBUG=1 npx playwright test --config integration/playwright.deployments.config.ts",
Expand Down
1 change: 1 addition & 0 deletions packages/chrome-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"lint:publint": "publint",
"lint:attw": "attw --pack .",
"test": "jest",
"test:cache:clear": "jest --clearCache --useStderr",
"test:ci": "jest --maxWorkers=70%",
"test:coverage": "jest --collectCoverage && open coverage/lcov-report/index.html",
"prepublishOnly": "npm run build"
Expand Down
1 change: 1 addition & 0 deletions packages/clerk-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"lint:publint": "publint",
"lint:attw": "attw --pack .",
"test": "jest",
"test:cache:clear": "jest --clearCache --useStderr",
"test:ci": "jest --maxWorkers=70%",
"test:coverage": "jest --collectCoverage && open coverage/lcov-report/index.html",
"watch": "webpack --config webpack.config.js --env production --watch"
Expand Down
3 changes: 2 additions & 1 deletion packages/fastify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
"lint:publint": "publint",
"lint:attw": "attw --pack .",
"publish:local": "npx yalc push --replace --sig",
"test": "jest"
"test": "jest",
"test:cache:clear": "jest --clearCache --useStderr"
},
"dependencies": {
"@clerk/backend": "0.31.2",
Expand Down
1 change: 1 addition & 0 deletions packages/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
"lint:publint": "publint",
"lint:attw": "attw --pack .",
"test": "jest",
"test:cache:clear": "jest --clearCache --useStderr",
"test:ci": "jest --maxWorkers=70%"
},
"dependencies": {
Expand Down
1 change: 1 addition & 0 deletions packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"lint:publint": "publint",
"lint:attw": "attw --pack .",
"test": "jest",
"test:cache:clear": "jest --clearCache --useStderr",
"test:ci": "jest --maxWorkers=70%"
},
"dependencies": {
Expand Down
1 change: 1 addition & 0 deletions packages/sdk-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"lint:publint": "publint",
"lint:attw": "attw --pack .",
"test": "jest",
"test:cache:clear": "jest --clearCache --useStderr",
"test:ci": "jest --maxWorkers=70%"
},
"author": {
Expand Down
1 change: 1 addition & 0 deletions packages/shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
"lint:publint": "publint",
"lint:attw": "attw --pack .",
"test": "jest",
"test:cache:clear": "jest --clearCache --useStderr",
"test:ci": "jest --maxWorkers=70%",
"test:coverage": "jest --collectCoverage && open coverage/lcov-report/index.html"
},
Expand Down
3 changes: 3 additions & 0 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@
"outputMode": "new-only",
"outputs": []
},
"test:cache:clear": {
"cache": false
},
"test:ci": {
"dependsOn": ["build"],
"inputs": [
Expand Down

0 comments on commit d003418

Please sign in to comment.