-
Notifications
You must be signed in to change notification settings - Fork 1
/
vite.config.ts
32 lines (29 loc) · 974 Bytes
/
vite.config.ts
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
31
32
/// <reference types="vitest" />
/// <reference types="vite/client" />
// See https://github.com/vitest-dev/vitest/blob/main/examples/react-testing-lib/vite.config.ts
//import eslint from "vite-plugin-eslint" //...or vite-plugin-checker
import react from "@vitejs/plugin-react";
import { defineConfig } from "vite";
import { checker } from "vite-plugin-checker";
// https://vitejs.dev/config/
export default defineConfig({
// currently seems to require you manually reload the app ?
plugins: [
// eslint(),
react(),
checker({
typescript: true,
eslint: {
lintCommand: "eslint src/**/*.ts src/**/*.tsx",
},
}),
],
test: {
globals: true,
environment: "jsdom",
setupFiles: "./src/testSetup/setup.ts",
// you might want to disable it, if you don't have tests that rely on CSS
// since parsing CSS is slow
css: true,
},
});