Initial TrueGrowth source import
This commit is contained in:
28
packages/drawnix/vitest.config.ts
Normal file
28
packages/drawnix/vitest.config.ts
Normal file
@@ -0,0 +1,28 @@
|
||||
import { defineConfig } from 'vitest/config';
|
||||
import path from 'path';
|
||||
|
||||
export default defineConfig({
|
||||
test: {
|
||||
globals: true,
|
||||
environment: 'jsdom',
|
||||
include: ['src/**/*.test.ts', 'src/**/*.test.tsx'],
|
||||
exclude: ['node_modules', 'dist'],
|
||||
setupFiles: ['./vitest.setup.ts'],
|
||||
},
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': path.resolve(__dirname, './src'),
|
||||
react: path.resolve(__dirname, '../../node_modules/react'),
|
||||
'react-dom': path.resolve(__dirname, '../../node_modules/react-dom'),
|
||||
'react/jsx-runtime': path.resolve(
|
||||
__dirname,
|
||||
'../../node_modules/react/jsx-runtime.js'
|
||||
),
|
||||
'react/jsx-dev-runtime': path.resolve(
|
||||
__dirname,
|
||||
'../../node_modules/react/jsx-dev-runtime.js'
|
||||
),
|
||||
},
|
||||
dedupe: ['react', 'react-dom'],
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user