18 lines
414 B
TypeScript
18 lines
414 B
TypeScript
import { fileURLToPath } from 'node:url';
|
|
import { dirname, resolve } from 'node:path';
|
|
import { defineConfig } from 'vitest/config';
|
|
|
|
const here = dirname(fileURLToPath(import.meta.url));
|
|
|
|
export default defineConfig({
|
|
resolve: {
|
|
alias: {
|
|
'@pikebacker/shared': resolve(here, '../../packages/shared/src/index.ts')
|
|
}
|
|
},
|
|
test: {
|
|
environment: 'node',
|
|
include: ['src/**/*.test.ts']
|
|
}
|
|
});
|