-
Notifications
You must be signed in to change notification settings - Fork 1
/
vitest.config.mts
30 lines (29 loc) · 984 Bytes
/
vitest.config.mts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// import * as path from 'node:path'
import { defineConfig } from "vitest/config";
import react from "@vitejs/plugin-react";
export default defineConfig({
test: {
globals: true,
// Lookup the unit tests in the "src" directory becase
// they are located next to the source code they are testing.
dir: "./src",
// alias: {
// '~/core': path.resolve(__dirname, 'src/core'),
// },
// typecheck: {
// // Load the TypeScript configuration to the unit tests.
// // Otherwise, Vitest will use the root-level "tsconfig.json",
// // which includes way too more than the tests need.
// tsconfig: './tsconfig.test.unit.json',
// },
// environmentOptions: {
// jsdom: {
// // Drop the 3000 port from the default "location.href"
// // for backward-compatibility with the existing tests.
// url: "http://localhost/",
// },
// },
environment: "happy-dom",
},
plugins: [react()],
});