Fix UI tests by replacing jest with vitest

This commit is contained in:
viktorstrate
2022-07-08 15:23:34 +02:00
parent fdcf0cfd05
commit d1a92afe0f
25 changed files with 500 additions and 151 deletions

View File

@@ -1,3 +1,6 @@
/// <reference types="vitest" />
/// <reference types="vite/client" />
import { defineConfig } from 'vite'
import svgr from 'vite-plugin-svgr'
import react from '@vitejs/plugin-react'
@@ -8,4 +11,12 @@ export default defineConfig({
server: {
port: 1234,
},
esbuild: {
logOverride: { 'this-is-undefined-in-esm': 'silent' },
},
test: {
globals: true,
environment: 'jsdom',
setupFiles: './testing/setupTests.ts',
},
})