diff --git a/backend/vitest.config.mts b/backend/vitest.config.mts index fe1ceb5fb3..0a7f31124d 100644 --- a/backend/vitest.config.mts +++ b/backend/vitest.config.mts @@ -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: { diff --git a/packages/api/vitest.config.mts b/packages/api/vitest.config.mts index 8f376f1538..d25e551e7d 100644 --- a/packages/api/vitest.config.mts +++ b/packages/api/vitest.config.mts @@ -1,18 +1,13 @@ /// -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,