Skip to content

Commit

Permalink
fix(workspace): migrate test
Browse files Browse the repository at this point in the history
ChristopherPHolder committed Aug 25, 2024

Verified

This commit was signed with the committer’s verified signature.
stsewd Santos Gallegos
1 parent c5a6b53 commit 1a87553
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/cli/project.json
Original file line number Diff line number Diff line change
@@ -28,7 +28,7 @@
"executor": "@nx/vite:test",
"outputs": ["{workspaceRoot}/coverage/packages/cli"],
"options": {
"config": "{workspaceRoot}/packages/cli/vite.config.ts"
"config": "{workspaceRoot}/packages/cli/vite.config.mts"
}
},
"version": {
6 changes: 2 additions & 4 deletions packages/cli/vite.config.ts → packages/cli/vite.config.mts
Original file line number Diff line number Diff line change
@@ -4,16 +4,13 @@ import { defineConfig } from 'vite';
import { nxViteTsPaths } from '@nx/vite/plugins/nx-tsconfig-paths.plugin';

export default defineConfig({
root: __dirname,
// root: __dirname,
cacheDir: '../../node_modules/.vite/packages/cli',

plugins: [nxViteTsPaths()],

test: {
globals: true,
cache: {
dir: '../../node_modules/.vitest',
},
environment: 'node',
include: ['src/**/*.test.ts'],

@@ -22,5 +19,6 @@ export default defineConfig({
reportsDirectory: '../../coverage/packages/cli',
provider: 'v8',
},
watch: false,
},
});

0 comments on commit 1a87553

Please sign in to comment.