wynn/ts/vitest.config.ts

19 lines
399 B
TypeScript
Raw Normal View History

2025-06-14 21:17:42 +00:00
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,
},
},
})