Skip to content

Commit

Permalink
Fixe les alias d'import TS lors du run des tests
Browse files Browse the repository at this point in the history
  • Loading branch information
farnoux committed Jan 6, 2025
1 parent e8b8449 commit 7257a88
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion backend/vitest.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default defineConfig(({ mode }) => ({

plugins: [
swc.vite({ tsconfigFile: './tsconfig.spec.json' }),
tsconfigPaths({ projects: ['./tsconfig.json'] }),
tsconfigPaths({ projects: ['../tsconfig.base.json'] }),
],

test: {
Expand Down
9 changes: 2 additions & 7 deletions packages/api/vitest.config.mts
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
/// <reference types='vitest' />
import { nxViteTsPaths } from '@nx/vite/plugins/nx-tsconfig-paths.plugin';
import { loadEnv } from 'vite';
import tsconfigPaths from 'vite-tsconfig-paths';
import { defineConfig } from 'vitest/config';

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

plugins: [nxViteTsPaths()],

// Uncomment this if you are using workers.
// worker: {
// plugins: [ nxViteTsPaths() ],
// },
plugins: [tsconfigPaths({ projects: ['../../tsconfig.base.json'] })],

test: {
fileParallelism: false,
Expand Down

0 comments on commit 7257a88

Please sign in to comment.