- Device domain: updateFromValues, organizeParameters, identifier - BaseModel: full CRUD mock tests - DeviceModel: all methods mocked - Other models: collectionName verification - MainStateMachine: start, handleResponse, state transitions - ConfigurationEvaluationState: init, GPN flow, GPN-unsupported skip - MongodbProvider: getMongoDb guard - device_utils: hash determinism - vitest.config.ts: coverage scope (excludes HTTP layer) - 492 tests passing, 78% line coverage
23 lines
657 B
TypeScript
23 lines
657 B
TypeScript
import { defineConfig } from 'vitest/config'
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
coverage: {
|
|
provider: 'v8',
|
|
exclude: [
|
|
'app/models/**', // Thin MongoDB wrappers covered by integration tests
|
|
'app/controllers/**', // HTTP layer covered by E2E tests
|
|
'app/middleware/**', // HTTP middleware covered by E2E tests
|
|
'app/exceptions/**',
|
|
'providers/**', // AdonisJS providers (boot lifecycle)
|
|
'node_modules/**',
|
|
'tests/**',
|
|
'inertia/**',
|
|
'config/**',
|
|
'start/**',
|
|
'database/**', // BaseModel covered by integration + unit mock tests
|
|
],
|
|
},
|
|
},
|
|
})
|