ci: Fix coverage include/exclude to prevent RolldownErrors (#31206)

This commit is contained in:
Matsu 2026-05-27 16:55:49 +03:00 committed by GitHub
parent 2995e018ad
commit 4171821940
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 4 deletions

View File

@ -12,8 +12,7 @@ export const createVitestConfig = (options: InlineConfig = {}) => {
outputFile: { junit: './junit.xml' },
coverage: {
enabled: false,
include: ['src/**'],
exclude: ['**/*.grammar'],
include: ['src/**/*.{ts,vue}'],
provider: 'v8',
reporter: ['text-summary', 'lcov', 'html-spa'],
},

View File

@ -17,8 +17,7 @@ export const createBaseInlineConfig = (options: InlineConfig = {}): InlineConfig
enabled: true,
provider: 'v8',
reporter: process.env.CI === 'true' ? 'cobertura' : 'text-summary',
include: ['src/**/*'],
exclude: ['**/*.grammar'],
include: ['src/**/*.ts'],
},
}
: {}),