Skip to content

Commit 7a2bc4c

Browse files
committed
ci: invalidate test cache if dependencies change
1 parent 3bafc89 commit 7a2bc4c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nx.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
},
7575
"unit-test": {
7676
"cache": true,
77-
"inputs": ["default", "test-vitest-inputs"],
77+
"inputs": ["default", "^production", "test-vitest-inputs"],
7878
"outputs": [
7979
"{workspaceRoot}/coverage/{projectName}/unit-tests/lcov.info"
8080
],
@@ -88,7 +88,7 @@
8888
},
8989
"int-test": {
9090
"cache": true,
91-
"inputs": ["default", "test-vitest-inputs"],
91+
"inputs": ["default", "^production", "test-vitest-inputs"],
9292
"outputs": ["{workspaceRoot}/coverage/{projectName}/int-tests/lcov.info"],
9393
"executor": "@nx/vite:test",
9494
"options": {

0 commit comments

Comments
 (0)