mirror of
https://github.com/kremalicious/blog.git
synced 2024-11-25 11:18:35 +01:00
34 lines
754 B
TypeScript
34 lines
754 B
TypeScript
|
/// <reference types="vitest" />
|
||
|
import { getViteConfig } from 'astro/config'
|
||
|
import tsconfigPaths from 'vite-tsconfig-paths'
|
||
|
|
||
|
export default getViteConfig({
|
||
|
plugins: [tsconfigPaths()],
|
||
|
test: {
|
||
|
globals: true,
|
||
|
environment: 'jsdom',
|
||
|
setupFiles: ['./test/vitest.setup.ts'],
|
||
|
include: [
|
||
|
'./src/**/*.test.?(c|m)[jt]s?(x)',
|
||
|
'./scripts/**/*.test.?(c|m)[jt]s?(x)'
|
||
|
],
|
||
|
deps: {
|
||
|
moduleDirectories: ['node_modules', './test/__mocks__']
|
||
|
},
|
||
|
coverage: {
|
||
|
all: true,
|
||
|
exclude: [
|
||
|
'**/*.d.ts',
|
||
|
'**/*.test.ts',
|
||
|
'**/*.spec.ts',
|
||
|
'**/test/**/*',
|
||
|
'**/.config',
|
||
|
'src/images/components',
|
||
|
'src/pages',
|
||
|
'**/content',
|
||
|
'public'
|
||
|
]
|
||
|
}
|
||
|
}
|
||
|
})
|