You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

22 lines
567 B

import { defineConfig } from 'vitest/config';
import { nxViteTsPaths } from '@nx/vite/plugins/nx-tsconfig-paths.plugin';
import path from 'path';
export default defineConfig({
define: {
__DEV__: true,
__TEST__: true,
__BROWSER__: false,
__VERSION__: '"unknown"',
__APP_VERSION__: '"0.0.0"',
},
plugins: [nxViteTsPaths()],
test: {
environment: 'jsdom',
include: [
path.resolve(__dirname, '__tests__/*.spec.ts'),
path.resolve(__dirname, '__tests__/*.spec.tsx'),
],
globals: true,
testTimeout: 10000,
},
});