- vitest.config.js : provider changé de 'v8' à 'istanbul' car v8 utilise le Node Inspector API non supporté par Bun - package.json : ajout @vitest/coverage-istanbul comme devDependency - Résultat : 17 tests JS, 77% stmts, 63% branches, 75% funcs, 77% lines Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
15 lines
449 B
JavaScript
15 lines
449 B
JavaScript
import { defineConfig } from 'vitest/config'
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
environment: 'happy-dom',
|
|
include: ['tests/js/**/*.test.js'],
|
|
coverage: {
|
|
provider: 'istanbul',
|
|
include: ['assets/**/*.js'],
|
|
exclude: ['assets/modules/event-map.js', 'assets/modules/billet-designer.js', 'assets/modules/stripe-payment.js'],
|
|
reporter: ['text', 'lcov'],
|
|
},
|
|
},
|
|
})
|