Skip to content

Commit c6afe8a

Browse files
committed
chore: set up nx targets for unit and integration tests
1 parent 465f230 commit c6afe8a

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

nx.json

+12-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,13 @@
44
"default": {
55
"runner": "nx/tasks-runners/default",
66
"options": {
7-
"cacheableOperations": ["build", "lint", "test", "e2e"]
7+
"cacheableOperations": [
8+
"build",
9+
"lint",
10+
"unit-test",
11+
"integration-test",
12+
"e2e"
13+
]
814
}
915
}
1016
},
@@ -24,7 +30,10 @@
2430
"reportUnusedDisableDirectives": "warn"
2531
}
2632
},
27-
"test": {
33+
"unit-test": {
34+
"inputs": ["default", "^production"]
35+
},
36+
"integration-test": {
2837
"inputs": ["default", "^production"]
2938
},
3039
"e2e": {
@@ -68,7 +77,7 @@
6877
"!{projectRoot}/src/test-setup.[jt]s",
6978
"!{projectRoot}/test-setup.[jt]s",
7079
"!{projectRoot}/**/?(*.)mock.[jt]s?(x)",
71-
"!{projectRoot}/vite.config.[jt]s",
80+
"!{projectRoot}/vite.config.@(unit|integration).[jt]s",
7281
"!{projectRoot}/test/**/*",
7382
"!{projectRoot}/perf/**/*",
7483
"!{projectRoot}/code-pushup.config.?(m)[jt]s"

0 commit comments

Comments
 (0)