Skip to content

Commit

Permalink
fix(deps): update vulnerable test-exclude to v7 (#5867)
Browse files Browse the repository at this point in the history
  • Loading branch information
AriPerkkio authored Jun 12, 2024
1 parent e974599 commit 0a71594
Show file tree
Hide file tree
Showing 5 changed files with 63 additions and 34 deletions.
2 changes: 1 addition & 1 deletion packages/coverage-istanbul/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"istanbul-reports": "^3.1.7",
"magicast": "^0.3.4",
"picocolors": "^1.0.1",
"test-exclude": "^6.0.0"
"test-exclude": "^7.0.1"
},
"devDependencies": {
"@types/debug": "^4.1.12",
Expand Down
1 change: 1 addition & 0 deletions packages/coverage-istanbul/src/provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@ export class IstanbulCoverageProvider extends BaseCoverageProvider implements Co

const uncoveredFiles = includedFiles
.filter(file => !coveredFiles.includes(file))
.sort()

const cacheKey = new Date().getTime()
const coverageMap = libCoverage.createCoverageMap({})
Expand Down
2 changes: 1 addition & 1 deletion packages/coverage-v8/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"picocolors": "^1.0.1",
"std-env": "^3.7.0",
"strip-literal": "^2.1.0",
"test-exclude": "^6.0.0"
"test-exclude": "^7.0.1"
},
"devDependencies": {
"@types/debug": "^4.1.12",
Expand Down
90 changes: 59 additions & 31 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion test/coverage-test/testing.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const configs = [
isBrowser && '**/no-esbuild-transform.test.js',
].filter(Boolean),
coverage: { enabled: true },
browser: { enabled: isBrowser, name: 'chrome', headless: true },
browser: { enabled: isBrowser, name: 'chromium', provider: 'playwright', headless: true },

// Regression vitest#3330
reporters: ['default', 'junit'],
Expand Down

0 comments on commit 0a71594

Please sign in to comment.