16 lines
385 B
TypeScript
16 lines
385 B
TypeScript
|
|
import path from 'node:path';
|
||
|
|
import { defineConfig } from 'vitest/config';
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Covers the pure helpers only — no React, no DOM. `@/*` mirrors `tsconfig.json`'s path so a
|
||
|
|
* spec can import the same modules the app does.
|
||
|
|
*/
|
||
|
|
export default defineConfig({
|
||
|
|
resolve: {
|
||
|
|
alias: { '@': path.resolve(__dirname, 'src') },
|
||
|
|
},
|
||
|
|
test: {
|
||
|
|
include: ['src/**/*.spec.ts'],
|
||
|
|
},
|
||
|
|
});
|