Skip to content

Commit cc2de13

Browse files
committed
test: create the vitest.config.ts file
This commit introduces the configuration of the [Vitest](https://vitestjs.dev) which is the test runner used by the whole application to load and validate Units, Components, and Specifications.
1 parent f1d889b commit cc2de13

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

vitest.config.ts

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/// <reference types="vitest" />
2+
/// <reference types="vitest/globals" />
3+
import react from '@vitejs/plugin-react'
4+
import tsconfigPaths from 'vite-tsconfig-paths'
5+
import { defineConfig } from 'vitest/config'
6+
7+
export default defineConfig({
8+
test: {
9+
globals: true,
10+
include: ['**/*.{test,spec}.?(c|m)ts?(x)'],
11+
environment: 'jsdom',
12+
setupFiles: ['./_/env/vitest-setup.ts'],
13+
},
14+
plugins: [react(), tsconfigPaths()],
15+
ssr: {
16+
target: 'node',
17+
},
18+
define: {
19+
'import.meta.vitest': undefined,
20+
},
21+
css: {
22+
postcss: require('./postcss.config.cjs'),
23+
},
24+
})

0 commit comments

Comments
 (0)