initial commit
This commit is contained in:
39
vitest.config.js
Normal file
39
vitest.config.js
Normal file
@@ -0,0 +1,39 @@
|
||||
import { defineVitestConfig } from '@nuxt/test-utils/config'
|
||||
|
||||
export default defineVitestConfig({
|
||||
test: {
|
||||
exclude: ['**/node_modules/**', 'test/e2e/**'],
|
||||
environment: 'nuxt',
|
||||
environmentOptions: {
|
||||
nuxt: {
|
||||
domEnvironment: 'happy-dom',
|
||||
},
|
||||
},
|
||||
coverage: {
|
||||
provider: 'v8',
|
||||
reporter: ['text', 'html'],
|
||||
include: ['app/**/*.js', 'app/**/*.vue', 'server/utils/**/*.js'],
|
||||
exclude: [
|
||||
'app/app.vue',
|
||||
'app/pages/**/*.vue',
|
||||
'app/components/KestrelMap.vue',
|
||||
'app/composables/useWebRTC.js', // Browser/WebRTC glue; covered by E2E
|
||||
'app/composables/useLiveSessions.js', // Visibility/polling branches; covered by E2E
|
||||
'app/composables/useCameras.js', // Visibility/polling branches; covered by E2E
|
||||
'server/utils/mediasoup.js', // Requires real mediasoup worker; covered by integration/E2E
|
||||
'server/utils/db.js', // Bootstrap/path branches depend on env; covered by integration
|
||||
'server/utils/migrateFeedsToDevices.js', // File-system branches; one-time migration
|
||||
'**/*.spec.js',
|
||||
'**/*.config.js',
|
||||
'**/node_modules/**',
|
||||
'test/e2e/**', // Exclude E2E tests from unit test coverage
|
||||
],
|
||||
thresholds: {
|
||||
lines: 85,
|
||||
functions: 85,
|
||||
branches: 85,
|
||||
statements: 85,
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user