-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Expand file tree
/
Copy pathvitest.config.ts
More file actions
23 lines (21 loc) · 707 Bytes
/
vitest.config.ts
File metadata and controls
23 lines (21 loc) · 707 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import * as path from 'node:path'
import { defineConfig } from 'vitest/config'
import angular from '@analogjs/vite-plugin-angular'
import packageJson from './package.json'
const tsconfigPath = path.join(import.meta.dirname, 'tsconfig.test.json')
const testDirPath = path.join(import.meta.dirname, 'tests')
const angularPlugin = angular({ tsconfig: tsconfigPath, jit: true })
export default defineConfig({
plugins: [angularPlugin],
test: {
name: packageJson.name,
watch: false,
dir: testDirPath,
pool: 'threads',
environment: 'jsdom',
setupFiles: [path.join(testDirPath, 'test-setup.ts')],
globals: true,
reporters: 'default',
disableConsoleIntercept: true,
},
})