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