mirror of
https://github.com/vee1e/bulk-questionnaire-upload.git
synced 2026-09-01 09:50:06 +00:00
29 lines
796 B
TypeScript
29 lines
796 B
TypeScript
import { defineConfig } from 'vitest/config'
|
|
import { fileURLToPath } from 'node:url'
|
|
import { dirname, resolve } from 'node:path'
|
|
|
|
const __filename = fileURLToPath(import.meta.url)
|
|
const __dirname = dirname(__filename)
|
|
const repoRoot = resolve(__dirname, '..')
|
|
|
|
export default defineConfig({
|
|
resolve: {
|
|
alias: {
|
|
'@angular/core': resolve(__dirname, 'node_modules/@angular/core'),
|
|
'@angular/common': resolve(__dirname, 'node_modules/@angular/common'),
|
|
'@angular/compiler': resolve(__dirname, 'node_modules/@angular/compiler'),
|
|
'rxjs': resolve(__dirname, 'node_modules/rxjs'),
|
|
}
|
|
},
|
|
server: {
|
|
fs: {
|
|
allow: ['..']
|
|
}
|
|
},
|
|
test: {
|
|
environment: 'jsdom',
|
|
include: [resolve(repoRoot, 'tests/frontend/**/*.spec.ts')],
|
|
globals: true
|
|
}
|
|
})
|
|
|