18
vitest.config.ts
Normal file
18
vitest.config.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import {fileURLToPath, URL} from 'node:url';
|
||||
|
||||
import {defineConfig} from 'vitest/config';
|
||||
|
||||
export default defineConfig({
|
||||
resolve: {
|
||||
alias: {
|
||||
'./customWorldCharacterLoadout': fileURLToPath(new URL('./src/data/customWorldCharacterLoadout.stub.ts', import.meta.url)),
|
||||
'../data/customWorldCharacterLoadout': fileURLToPath(new URL('./src/data/customWorldCharacterLoadout.stub.ts', import.meta.url)),
|
||||
'../../data/customWorldCharacterLoadout': fileURLToPath(new URL('./src/data/customWorldCharacterLoadout.stub.ts', import.meta.url)),
|
||||
},
|
||||
},
|
||||
test: {
|
||||
environment: 'node',
|
||||
globals: true,
|
||||
include: ['src/**/*.test.ts', 'src/**/*.test.tsx', 'scripts/**/*.test.ts'],
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user