18 lines
359 B
TypeScript
18 lines
359 B
TypeScript
import { fileURLToPath } from 'node:url'
|
|
import { defineConfig } from 'vitest/config'
|
|
|
|
export default defineConfig({
|
|
resolve: {
|
|
alias: {
|
|
'@': fileURLToPath(new URL('./src', import.meta.url)),
|
|
},
|
|
},
|
|
test: {
|
|
environment: 'node',
|
|
globals: true,
|
|
include: ['src/**/*.test.ts'],
|
|
clearMocks: true,
|
|
restoreMocks: true,
|
|
},
|
|
})
|