19 lines
399 B
TypeScript
19 lines
399 B
TypeScript
|
|
import { defineConfig } from 'vitest/config'
|
||
|
|
|
||
|
|
export default defineConfig({
|
||
|
|
test: {
|
||
|
|
globals: true,
|
||
|
|
include: ['**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
|
||
|
|
typecheck: {
|
||
|
|
enabled: true,
|
||
|
|
tsconfig: './tsconfig.json',
|
||
|
|
include: ['**/*.{test,spec}.{ts,tsx}'],
|
||
|
|
},
|
||
|
|
},
|
||
|
|
resolve: {
|
||
|
|
alias: {
|
||
|
|
'#': new URL('./src', import.meta.url).pathname,
|
||
|
|
},
|
||
|
|
},
|
||
|
|
})
|