mirror of
https://git.vectorsigma.ru/public/photoview.git
synced 2026-08-03 21:09:05 +00:00
Fix UI tests by replacing jest with vitest
This commit is contained in:
@@ -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',
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user