- aggiunge test per gameState e utilita server - aggiunge test di integrazione WebSocket - aggiunge test componenti Vue (ControllerPage/DisplayPage) - aggiunge test stress su carico WebSocket - aggiorna configurazione Vitest per includere nuove cartelle e ambiente componenti - aggiorna script npm e dipendenze di test
20 lines
530 B
JavaScript
20 lines
530 B
JavaScript
import { defineConfig } from 'vitest/config'
|
|
import vue from '@vitejs/plugin-vue'
|
|
|
|
export default defineConfig({
|
|
plugins: [vue()],
|
|
test: {
|
|
include: [
|
|
'tests/unit/**/*.{test,spec}.js',
|
|
'tests/integration/**/*.{test,spec}.js',
|
|
'tests/component/**/*.{test,spec}.js',
|
|
'tests/stress/**/*.{test,spec}.js',
|
|
],
|
|
globals: true,
|
|
environment: 'node',
|
|
environmentMatchGlobs: [
|
|
['tests/component/**', 'happy-dom'],
|
|
],
|
|
},
|
|
})
|