fix(test): vitest was hanging due to vite-plugin-eslint plugin

This commit is contained in:
Deluan
2024-10-01 17:12:54 -04:00
parent eab6aadc0f
commit b7285b28cf
3 changed files with 35 additions and 29 deletions
+1 -2
View File
@@ -1,7 +1,6 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react-swc'
import { VitePWA } from 'vite-plugin-pwa'
import eslintPlugin from '@nabla/vite-plugin-eslint'
const frontendPort = parseInt(process.env.PORT) || 4533
const backendPort = frontendPort + 100
@@ -10,7 +9,6 @@ const backendPort = frontendPort + 100
export default defineConfig({
plugins: [
react(),
eslintPlugin({ formatter: 'stylish' }),
VitePWA({
registerType: 'autoUpdate',
manifest: manifest(),
@@ -37,6 +35,7 @@ export default defineConfig({
setupFiles: './src/setupTests.js',
css: true,
reporters: ['verbose'],
// reporters: ['default', 'hanging-process'],
coverage: {
reporter: ['text', 'json', 'html'],
include: ['src/**/*'],