feat(test): implementazione infrastruttura completa (Unit, Integration, E2E) con Vitest e Playwright

- Introduce Vitest per Unit e Integration Test.
- Introduce Playwright per End-to-End Test.
- Aggiuge documentazione dettagliata in tests/README.md.
- Aggiorna .gitignore per escludere i report di coverage
This commit is contained in:
2026-02-12 15:13:04 +01:00
parent 331ab0bbeb
commit 71119da727
12 changed files with 2579 additions and 13 deletions

9
vitest.config.js Normal file
View File

@@ -0,0 +1,9 @@
import { defineConfig } from 'vitest/config'
export default defineConfig({
test: {
include: ['tests/unit/**/*.{test,spec}.js', 'tests/integration/**/*.{test,spec}.js'],
globals: true, // permette di usare describe/it/expect senza import
environment: 'node', // per backend tests. Se testi componenti Vue, usa 'jsdom'
},
})