20 lines
430 B
TypeScript
20 lines
430 B
TypeScript
import { defineConfig } from 'vitest/config';
|
|
import path from 'node:path';
|
|
|
|
export default defineConfig({
|
|
resolve: {
|
|
alias: {
|
|
'@': path.resolve(__dirname, 'src'),
|
|
'@test': path.resolve(__dirname, 'test/helpers'),
|
|
},
|
|
},
|
|
test: {
|
|
globals: true,
|
|
include: ['test/**/*.test.ts'],
|
|
coverage: {
|
|
provider: 'v8',
|
|
include: ['src/**/*.ts'],
|
|
exclude: ['src/**/index.ts'],
|
|
},
|
|
},
|
|
}); |