2023-03-02 16:10:25 +00:00
|
|
|
import { defineConfig } from 'vitest/config';
|
2023-08-30 16:10:13 +00:00
|
|
|
import { dirname } from 'path';
|
|
|
|
import { fileURLToPath } from 'url';
|
|
|
|
|
|
|
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
2023-03-02 16:10:25 +00:00
|
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
test: {
|
2024-08-08 13:28:44 +00:00
|
|
|
include: ['src/**/*.test.ts'],
|
2023-03-02 16:10:25 +00:00
|
|
|
globals: true,
|
|
|
|
isolate: false,
|
2023-08-30 16:10:13 +00:00
|
|
|
alias: {
|
|
|
|
updux: __dirname + '/src/index.ts',
|
|
|
|
},
|
2023-03-02 16:10:25 +00:00
|
|
|
},
|
|
|
|
});
|