21 lines
450 B
TypeScript
21 lines
450 B
TypeScript
import { defineConfig } from 'vitest/config';
|
|||
|
|
import { fileURLToPath } from 'node:url';
|
||
|
|
import path from 'node:path';
|
||
|
|
|
||
|
|
const __filename = fileURLToPath(import.meta.url);
|
||
|
|
const __dirname = path.dirname(__filename);
|
||
|
|
|
||
|
|
export default defineConfig({
|
||
|
|
root: __dirname,
|
||
|
|
resolve: {
|
||
|
|
alias: {
|
||
|
|
$lib: path.resolve(__dirname, 'src/lib')
|
||
|
|
}
|
||
|
|
},
|
||
|
|
test: {
|
||
|
|
environment: 'node',
|
||
|
|
globals: true,
|
||
|
|
include: ['src/**/*.test.{ts,tsx}']
|
||
|
|
}
|
||
|
|
});
|