17 lines
391 B
JavaScript
17 lines
391 B
JavaScript
import { defineConfig } from 'vitest/config';
|
|
import { dirname } from 'path';
|
|
import { fileURLToPath } from 'url';
|
|
|
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
include: ['src/**/*.test.ts'],
|
|
globals: true,
|
|
isolate: false,
|
|
alias: {
|
|
updux: __dirname + '/src/index.ts',
|
|
},
|
|
},
|
|
});
|