|
17 | 17 | }, |
18 | 18 | "unit-test": { |
19 | 19 | "cache": true, |
| 20 | + "inputs": ["test-vitest-inputs"], |
20 | 21 | "outputs": [ |
21 | 22 | "{workspaceRoot}/coverage/{projectName}/unit-tests/lcov.info" |
22 | 23 | ], |
23 | 24 | "executor": "@nx/vite:test", |
24 | 25 | "options": { |
25 | | - "configFile": "{projectRoot}/vitest.unit.config.ts" |
| 26 | + "configFile": "{projectRoot}/vitest.unit.config.ts", |
| 27 | + "passWithNoTests": true, |
| 28 | + "watch": false, |
| 29 | + "coverage": { |
| 30 | + "enabled": true |
| 31 | + } |
26 | 32 | } |
27 | 33 | }, |
28 | 34 | "int-test": { |
29 | 35 | "cache": true, |
| 36 | + "inputs": ["test-vitest-inputs"], |
30 | 37 | "outputs": ["{workspaceRoot}/coverage/{projectName}/int-tests/lcov.info"], |
31 | 38 | "executor": "@nx/vite:test", |
32 | 39 | "options": { |
33 | | - "configFile": "{projectRoot}/vitest.int.config.ts" |
| 40 | + "configFile": "{projectRoot}/vitest.int.config.ts", |
| 41 | + "passWithNoTests": true, |
| 42 | + "watch": false, |
| 43 | + "coverage": { |
| 44 | + "enabled": true |
| 45 | + } |
34 | 46 | } |
35 | 47 | }, |
36 | 48 | "e2e": { |
|
57 | 69 | "nxv-pkg-install": { |
58 | 70 | "parallelism": false |
59 | 71 | }, |
60 | | - "@nx/vite:test": { |
61 | | - "cache": true, |
62 | | - "inputs": ["test-vitest-inputs"], |
63 | | - "options": { |
64 | | - "passWithNoTests": true, |
65 | | - "watch": false |
66 | | - } |
67 | | - }, |
| 72 | + "@nx/vite:test": {}, |
68 | 73 | "code-pushup": { |
69 | 74 | "cache": false, |
70 | 75 | "outputs": [ |
|
235 | 240 | "default", |
236 | 241 | "!{projectRoot}/README.md", |
237 | 242 | "!{projectRoot}/CHANGELOG.md", |
238 | | - |
239 | 243 | "!{projectRoot}/perf/**/*", |
240 | 244 | "!{projectRoot}/tools/**/*", |
241 | 245 | "!{projectRoot}/zod2md.config.ts", |
242 | 246 | "!{projectRoot}/eslint.config.?(c)js", |
243 | 247 | "!{projectRoot}/code-pushup.config.?(*.).?(m)[jt]s", |
244 | | - |
245 | 248 | "!{projectRoot}/@(test|mocks|mock)/**/*", |
246 | 249 | "!{projectRoot}/**/?(*.)test.[jt]s?(x)?(.snap)", |
247 | 250 | "!{projectRoot}/**/?(*.)mocks.[jt]s?(x)", |
248 | 251 | "!{projectRoot}/**/?(*.)mock.[jt]s?(x)", |
249 | 252 | "!{projectRoot}/vitest.@(unit|int|e2e).config.[jt]s", |
250 | 253 | "!{projectRoot}/tsconfig.@(test|tools).json" |
251 | 254 | ], |
252 | | - "test-vitest-inputs": ["default", { "externalDependencies": ["vitest"] }], |
253 | | - "lint-eslint-inputs": ["default", { "externalDependencies": ["eslint"] }], |
| 255 | + "test-vitest-inputs": [ |
| 256 | + "default", |
| 257 | + { |
| 258 | + "externalDependencies": ["vitest"] |
| 259 | + } |
| 260 | + ], |
| 261 | + "lint-eslint-inputs": [ |
| 262 | + "default", |
| 263 | + { |
| 264 | + "externalDependencies": ["eslint"] |
| 265 | + } |
| 266 | + ], |
254 | 267 | "typecheck-typescript-inputs": [ |
255 | 268 | "default", |
256 | | - { "externalDependencies": ["typescript"] } |
| 269 | + { |
| 270 | + "externalDependencies": ["typescript"] |
| 271 | + } |
257 | 272 | ], |
258 | 273 | "code-pushup-inputs": [ |
259 | 274 | "default", |
260 | | - { "env": "NODE_OPTIONS" }, |
261 | | - { "env": "TSX_TSCONFIG_PATH" } |
| 275 | + { |
| 276 | + "env": "NODE_OPTIONS" |
| 277 | + }, |
| 278 | + { |
| 279 | + "env": "TSX_TSCONFIG_PATH" |
| 280 | + } |
262 | 281 | ], |
263 | 282 | "sharedGlobals": [ |
264 | | - { "runtime": "npm --version" }, |
265 | | - { "runtime": "node --version" }, |
| 283 | + { |
| 284 | + "runtime": "npm --version" |
| 285 | + }, |
| 286 | + { |
| 287 | + "runtime": "node --version" |
| 288 | + }, |
266 | 289 | "!{workspaceRoot}/**/dist/**/*", |
267 | 290 | "!{workspaceRoot}/**/(*.)coverage/**/*", |
268 | 291 | "!{workspaceRoot}/**/.code-pushup/**/*" |
|
0 commit comments