visua-vue/vitest.config.ts

21 lines
522 B
TypeScript
Raw Normal View History

2025-07-30 02:04:49 +02:00
// vitest.config.ts
import { fileURLToPath, URL } from 'node:url';
import { defineConfig } from 'vitest/config';
import path from 'path';
2025-07-30 16:39:02 +02:00
import vue from '@vitejs/plugin-vue';
2025-07-30 02:04:49 +02:00
export default defineConfig({
2025-07-30 16:39:02 +02:00
plugins: [vue()],
2025-07-30 02:04:49 +02:00
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url)),
'@visua': path.resolve(__dirname, './node_modules/@cellule-financiere-pmo/visua/output'),
},
},
test: {
globals: true,
environment: 'jsdom',
include: ['test/**/*.spec.ts'],
},
});