File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66 "start" : " vite" ,
77 "build" : " tsc && vite build" ,
88 "serve" : " vite preview" ,
9+ "test" : " vitest" ,
910 "lint" : " yarn eslint --fix --ext .ts,.tsx ."
1011 },
1112 "browserslist" : {
5455 "eslint-plugin-prettier" : " ^4.2.1" ,
5556 "eslint-plugin-react" : " ^7.32.2" ,
5657 "eslint-plugin-react-hooks" : " ^4.6.0" ,
58+ "jsdom" : " ^22.1.0" ,
5759 "openapi-typescript-codegen" : " ^0.25.0" ,
5860 "prettier" : " 2.8.4" ,
5961 "typescript" : " ^4.9.5" ,
6062 "vite" : " ^4.4.5" ,
6163 "vite-plugin-checker" : " ^0.6.1" ,
6264 "vite-plugin-svgr" : " ^3.2.0" ,
63- "vite-tsconfig-paths" : " ^4.2.0"
65+ "vite-tsconfig-paths" : " ^4.2.0" ,
66+ "vitest" : " ^0.34.3"
6467 }
6568}
Original file line number Diff line number Diff line change 1+ import { defineConfig } from 'vitest/config'
2+
3+ export default defineConfig ( {
4+ test : {
5+ globals : true ,
6+ environment : 'jsdom' ,
7+ setupFiles : './src/setupTests.ts' ,
8+ } ,
9+ } )
You can’t perform that action at this time.
0 commit comments