Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions packages/coverage-istanbul/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,16 @@
},
"dependencies": {
"@istanbuljs/schema": "^0.1.3",
"debug": "catalog:",
"istanbul-lib-coverage": "catalog:",
"istanbul-lib-instrument": "^6.0.3",
"istanbul-lib-report": "catalog:",
"istanbul-lib-source-maps": "catalog:",
"istanbul-reports": "catalog:",
"magicast": "catalog:",
"obug": "catalog:",
"tinyrainbow": "catalog:"
},
"devDependencies": {
"@types/debug": "catalog:",
"@types/istanbul-lib-coverage": "catalog:",
"@types/istanbul-lib-instrument": "^1.7.8",
"@types/istanbul-lib-report": "catalog:",
Expand Down
2 changes: 1 addition & 1 deletion packages/coverage-istanbul/src/provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ import type { CoverageProvider, ReportContext, ResolvedCoverageOptions, Vite, Vi
import { existsSync, promises as fs } from 'node:fs'
// @ts-expect-error missing types
import { defaults as istanbulDefaults } from '@istanbuljs/schema'
import createDebug from 'debug'
import libCoverage from 'istanbul-lib-coverage'
import { createInstrumenter } from 'istanbul-lib-instrument'
import libReport from 'istanbul-lib-report'
import libSourceMaps from 'istanbul-lib-source-maps'
import reports from 'istanbul-reports'
import { parseModule } from 'magicast'
import { createDebug } from 'obug'
import c from 'tinyrainbow'
import { BaseCoverageProvider } from 'vitest/coverage'
import { isCSSRequest } from 'vitest/node'
Expand Down
3 changes: 1 addition & 2 deletions packages/coverage-v8/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,17 +57,16 @@
"@bcoe/v8-coverage": "^1.0.2",
"@vitest/utils": "workspace:*",
"ast-v8-to-istanbul": "^0.3.8",
"debug": "catalog:",
"istanbul-lib-coverage": "catalog:",
"istanbul-lib-report": "catalog:",
"istanbul-lib-source-maps": "catalog:",
"istanbul-reports": "catalog:",
"magicast": "catalog:",
"obug": "catalog:",
"std-env": "catalog:",
"tinyrainbow": "catalog:"
},
"devDependencies": {
"@types/debug": "catalog:",
"@types/istanbul-lib-coverage": "catalog:",
"@types/istanbul-lib-report": "catalog:",
"@types/istanbul-lib-source-maps": "catalog:",
Expand Down
2 changes: 1 addition & 1 deletion packages/coverage-v8/src/provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import { fileURLToPath } from 'node:url'
// @ts-expect-error -- untyped
import { mergeProcessCovs } from '@bcoe/v8-coverage'
import astV8ToIstanbul from 'ast-v8-to-istanbul'
import createDebug from 'debug'
import libCoverage from 'istanbul-lib-coverage'
import libReport from 'istanbul-lib-report'
import libSourceMaps from 'istanbul-lib-source-maps'
import reports from 'istanbul-reports'
import { parseModule } from 'magicast'
import { createDebug } from 'obug'
import { normalize } from 'pathe'
import { provider } from 'std-env'
import c from 'tinyrainbow'
Expand Down
7 changes: 1 addition & 6 deletions packages/vitest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@
"peerDependencies": {
"@edge-runtime/vm": "*",
"@opentelemetry/api": "^1.9.0",
"@types/debug": "^4.1.12",
"@types/node": "^20.0.0 || ^22.0.0 || >=24.0.0",
"@vitest/browser-playwright": "workspace:*",
"@vitest/browser-preview": "workspace:*",
Expand All @@ -151,9 +150,6 @@
"@opentelemetry/api": {
"optional": true
},
"@types/debug": {
"optional": true
},
"@types/node": {
"optional": true
},
Expand Down Expand Up @@ -184,10 +180,10 @@
"@vitest/snapshot": "workspace:*",
"@vitest/spy": "workspace:*",
"@vitest/utils": "workspace:*",
"debug": "catalog:",
"es-module-lexer": "^1.7.0",
"expect-type": "^1.2.2",
"magic-string": "catalog:",
"obug": "catalog:",
"pathe": "catalog:",
"picomatch": "^4.0.3",
"std-env": "catalog:",
Expand All @@ -204,7 +200,6 @@
"@jridgewell/trace-mapping": "catalog:",
"@opentelemetry/api": "^1.9.0",
"@sinonjs/fake-timers": "14.0.0",
"@types/debug": "catalog:",
"@types/estree": "catalog:",
"@types/istanbul-lib-coverage": "catalog:",
"@types/istanbul-reports": "catalog:",
Expand Down
4 changes: 2 additions & 2 deletions packages/vitest/src/utils/debugger.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Debugger } from 'debug'
import createDebug from 'debug'
import type { Debugger } from 'obug'
import { createDebug } from 'obug'

export function createDebugger(namespace: `vitest:${string}`): Debugger | undefined {
const debug = createDebug(namespace)
Expand Down
3 changes: 1 addition & 2 deletions packages/web-worker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,9 @@
"vitest": "workspace:*"
},
"dependencies": {
"debug": "catalog:"
"obug": "catalog:"
},
"devDependencies": {
"@types/debug": "catalog:",
"@types/ungap__structured-clone": "^1.2.0",
"@ungap/structured-clone": "^1.3.0"
}
Expand Down
5 changes: 3 additions & 2 deletions packages/web-worker/src/utils.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import type { Debugger } from 'obug'
import type { WorkerGlobalState } from 'vitest'
import type { CloneOption } from './types'
import ponyfillStructuredClone from '@ungap/structured-clone'
import createDebug from 'debug'
import { createDebug } from 'obug'

export const debug: createDebug.Debugger = createDebug('vitest:web-worker')
export const debug: Debugger = createDebug('vitest:web-worker')

export function getWorkerState(): WorkerGlobalState {
// @ts-expect-error untyped global
Expand Down
Loading
Loading