nexu-io--open-design
17 行
455 B
TypeScript
17 行
455 B
TypeScript
import { resolve } from 'node:path';
|
|
import { defineConfig } from 'vitest/config';
|
|
|
|
export default defineConfig({
|
|
resolve: {
|
|
alias: {
|
|
'@excalidraw/excalidraw': resolve(__dirname, 'tests/helpers/excalidraw-mock.tsx'),
|
|
'motion/react': resolve(__dirname, 'tests/helpers/motion-mock.tsx'),
|
|
},
|
|
},
|
|
test: {
|
|
environment: 'node',
|
|
include: ['tests/**/*.test.{ts,tsx}'],
|
|
setupFiles: ['./tests/setup/jsdom-lexical.ts'],
|
|
},
|
|
});
|