Skip to content

Commit fa8920b

Browse files
committed
feat(models): add generic configuration with deps on test setup
1 parent 45683d7 commit fa8920b

File tree

2 files changed

+18
-10
lines changed

2 files changed

+18
-10
lines changed

nx.json

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,29 @@
1616
"e2e": {
1717
"dependsOn": ["^build"]
1818
},
19-
"nxv-pkg-install": {
20-
"parallelism": false
19+
"unit-test": {
20+
"cache": true,
21+
"inputs": ["default", "^production", "production", "test-setup"],
22+
"executor": "@nx/vite:test",
23+
"options": {
24+
"configFile": "{projectRoot}/vitest.unit.config.ts",
25+
"passWithNoTests": true,
26+
"watch": false
27+
}
2128
},
22-
"@nx/vite:test": {
29+
"int-test": {
2330
"cache": true,
24-
"inputs": ["default", "^production"],
31+
"inputs": ["default", "^production", "test-setup"],
32+
"executor": "@nx/vite:test",
2533
"options": {
34+
"configFile": "{projectRoot}/vitest.int.config.ts",
2635
"passWithNoTests": true,
2736
"watch": false
2837
}
2938
},
39+
"nxv-pkg-install": {
40+
"parallelism": false
41+
},
3042
"nx-release-publish": {
3143
"dependsOn": ["build"],
3244
"executor": "@nx/js:release-publish",
@@ -53,6 +65,7 @@
5365
"!{projectRoot}/code-pushup.config.?(m)[jt]s",
5466
"!{projectRoot}/zod2md.config.ts"
5567
],
68+
"test-setup": ["{workspaceRoot}/testing/test-setup/src/**/*"],
5669
"sharedGlobals": []
5770
},
5871
"workspaceLayout": {

testing/test-setup/project.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,7 @@
1414
"assets": ["testing/test-setup/*.md"]
1515
}
1616
},
17-
"unit-test": {
18-
"executor": "@nx/vite:test",
19-
"options": {
20-
"configFile": "testing/test-setup/vitest.unit.config.ts"
21-
}
22-
},
17+
"unit-test": {},
2318
"lint": {
2419
"executor": "@nx/linter:eslint",
2520
"outputs": ["{options.outputFile}"],

0 commit comments

Comments
 (0)