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
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"@typescript-eslint/eslint-plugin": "7.15.0",
"@typescript-eslint/parser": "7.15.0",
"@typescript-eslint/utils": "7.15.0",
"@vitest/coverage-v8": "3.2.4",
"@vitest/coverage-v8": "4.0.18",
"arg": "5.0.2",
"batching-toposort": "1.2.0",
"buffer": "6.0.3",
Expand Down Expand Up @@ -97,7 +97,7 @@
"tsx": "4.19.3",
"turbo": "2.5.6",
"typescript": "5.4.5",
"vitest": "3.2.4",
"vitest": "4.0.18",
"wrangler": "3.114.15",
"zx": "8.4.1"
},
Expand Down
3 changes: 3 additions & 0 deletions packages/adapter-mariadb/src/mariadb.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ import { inferCapabilities, PrismaMariaDbAdapterFactory, rewriteConnectionString
describe.each([
['8.0.12', { supportsRelationJoins: false }],
['8.0.13', { supportsRelationJoins: true }],
['8.1.0', { supportsRelationJoins: true }],
['8.4.5', { supportsRelationJoins: true }],
['8.4.13', { supportsRelationJoins: true }],
['11.4.7-MariaDB-ubu2404', { supportsRelationJoins: false }],
])('infer capabilities for %s', (version, capabilities) => {
test(`inferCapabilities(${version})`, () => {
Expand Down
4 changes: 2 additions & 2 deletions packages/adapter-mariadb/src/mariadb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,8 @@ export function inferCapabilities(version: unknown): Capabilities {

// No relation-joins support for mysql < 8.0.13 or mariadb.
const isMariaDB = suffix?.toLowerCase()?.includes('mariadb') ?? false
const supportsRelationJoins = !isMariaDB && (major > 8 || (major === 8 && minor >= 0 && patch >= 13))

const supportsRelationJoins =
!isMariaDB && (major > 8 || (major === 8 && (minor > 0 || (minor === 0 && patch >= 13))))
return { supportsRelationJoins }
}

Expand Down
3 changes: 1 addition & 2 deletions packages/client-generator-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@
"ts-pattern": "5.6.2"
},
"devDependencies": {
"@types/pluralize": "0.0.33",
"vitest": "3.2.4"
"@types/pluralize": "0.0.33"
},
"scripts": {
"dev": "DEV=true tsx helpers/build.ts",
Expand Down
3 changes: 0 additions & 3 deletions packages/client-generator-registry/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@
"@prisma/generator": "workspace:*",
"@prisma/internals": "workspace:*"
},
"devDependencies": {
"vitest": "3.2.4"
},
"scripts": {
"dev": "DEV=true tsx helpers/build.ts",
"build": "tsx helpers/build.ts",
Expand Down
3 changes: 1 addition & 2 deletions packages/client-generator-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@
"ts-pattern": "5.6.2"
},
"devDependencies": {
"@types/pluralize": "0.0.33",
"vitest": "3.2.4"
"@types/pluralize": "0.0.33"
},
"scripts": {
"dev": "DEV=true tsx helpers/build.ts",
Expand Down

This file was deleted.

2 changes: 1 addition & 1 deletion packages/client/tests/e2e/browser-bundle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
"devDependencies": {
"@types/node": "~20.19.0",
"prisma": "/tmp/prisma-0.0.0.tgz",
"vitest": "3.2.4"
"vitest": "4.0.18"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
"@types/jest": "29.5.12",
"@types/node": "~20.19.0",
"prisma": "/tmp/prisma-0.0.0.tgz",
"vitest": "3.2.4"
"vitest": "4.0.18"
}
}
2 changes: 1 addition & 1 deletion packages/client/tests/e2e/prisma-version-json/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
"@types/node": "~20.19.0",
"prisma": "/tmp/prisma-0.0.0.tgz",
"typescript": "5.9.3",
"vitest": "3.2.4"
"vitest": "4.0.18"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
"devDependencies": {
"@types/node": "~20.19.0",
"prisma": "/tmp/prisma-0.0.0.tgz",
"vitest": "3.2.4"
"vitest": "4.0.18"
}
}
3 changes: 1 addition & 2 deletions packages/config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@
"devDependencies": {
"@prisma/debug": "workspace:*",
"@prisma/get-platform": "workspace:*",
"dotenv": "17.2.3",
"vitest": "3.2.4"
"dotenv": "17.2.3"
},
"scripts": {
"dev": "DEV=true tsx helpers/build.ts",
Expand Down
3 changes: 1 addition & 2 deletions packages/credentials-store/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@
"xdg-app-paths": "8.3.0"
},
"devDependencies": {
"tempy": "1.0.1",
"vitest": "3.2.4"
"tempy": "1.0.1"
},
"scripts": {
"dev": "DEV=true tsx helpers/build.ts",
Expand Down
1 change: 0 additions & 1 deletion packages/debug/.prettierignore

This file was deleted.

5 changes: 0 additions & 5 deletions packages/debug/.prettierrc.yml

This file was deleted.

4 changes: 0 additions & 4 deletions packages/debug/jest.config.js

This file was deleted.

5 changes: 1 addition & 4 deletions packages/debug/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,14 @@
},
"bugs": "https://github.com/prisma/prisma/issues",
"devDependencies": {
"@types/jest": "29.5.14",
"@types/node": "~20.19.24",
"jest": "29.7.0",
"jest-junit": "16.0.0",
"kleur": "4.1.5",
"typescript": "5.4.5"
},
"scripts": {
"dev": "DEV=true tsx helpers/build.ts",
"build": "tsx helpers/build.ts",
"test": "jest",
"test": "vitest run",
"prepublishOnly": "pnpm run build"
},
"files": [
Expand Down
2 changes: 2 additions & 0 deletions packages/debug/src/__tests__/basic.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { stripVTControlCharacters } from 'node:util'

import { describe, expect, test } from 'vitest'

import { Debug, getLogs } from '../index'
import { removeISODate, sanitizeTestLogs } from '../util'

Expand Down
46 changes: 23 additions & 23 deletions packages/debug/src/__tests__/debug.extended.test.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import { afterEach, beforeEach, expect, test, vi } from 'vitest'

import * as useDebugImport from '../index'

let Debug: typeof useDebugImport.default

const importDebug = async () =>
await jest.isolateModulesAsync(async () => {
const mod = await import('../index')
Debug = mod.default
})
const importDebug = async () => {
const mod = await import('../index')
Debug = mod.default
}

beforeEach(() => {
delete process.env.DEBUG
Expand All @@ -18,12 +19,11 @@
})

afterEach(() => {
jest.resetModules()
jest.restoreAllMocks()
vi.resetModules()
})

test('with a namespace', async () => {
const consoleWarn = jest.spyOn(console, 'warn').mockImplementation()
const consoleWarn = vi.spyOn(console, 'warn')

process.env.DEBUG = 'test'
process.env.DEBUG_COLORS = 'false'
Expand All @@ -37,7 +37,7 @@
})

test('with colors', async () => {
const consoleWarn = jest.spyOn(console, 'warn').mockImplementation()
const consoleWarn = vi.spyOn(console, 'warn')

process.env.DEBUG = 'test2'
process.env.FORCE_COLOR = 'true'
Expand All @@ -48,12 +48,12 @@
debug('hello world')

const consoleWarnParams = consoleWarn.mock.calls.map(mapper)
expect(consoleWarnParams[0][0]).toMatchInlineSnapshot(`"test2 hello world"`)
expect(consoleWarnParams[0][0]).toMatchInlineSnapshot(`"test2 hello world"`)

Check failure on line 51 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / run_tests / All pkgs (win+mac) (windows-latest, 20.19.0)

src/__tests__/debug.extended.test.ts > with colors

Error: Snapshot `with colors 1` mismatched Expected: ""test2 hello world"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:51:35

Check failure on line 51 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / run_tests / All pkgs (win+mac) (macos-14, 20.19.0)

src/__tests__/debug.extended.test.ts > with colors

Error: Snapshot `with colors 1` mismatched Expected: ""test2 hello world"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:51:35

Check failure on line 51 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / run_tests / Others [v20.19.0]

src/__tests__/debug.extended.test.ts > with colors

Error: Snapshot `with colors 1` mismatched Expected: ""test2 hello world"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:51:35

Check failure on line 51 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / run_tests / Others [v22.12.0]

src/__tests__/debug.extended.test.ts > with colors

Error: Snapshot `with colors 1` mismatched Expected: ""test2 hello world"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:51:35

Check failure on line 51 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / run_tests / Others [v24]

src/__tests__/debug.extended.test.ts > with colors

Error: Snapshot `with colors 1` mismatched Expected: ""test2 hello world"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:51:35

Check failure on line 51 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / 🧪 / All pkgs (win+mac) (macos-14, 20.19.0)

src/__tests__/debug.extended.test.ts > with colors

Error: Snapshot `with colors 1` mismatched Expected: ""test2 hello world"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:51:35

Check failure on line 51 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / 🧪 / All pkgs (win+mac) (macos-14, 20.19.0)

src/__tests__/debug.extended.test.ts > with colors

Error: Snapshot `with colors 1` mismatched Expected: ""test2 hello world"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:51:35

Check failure on line 51 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / 🧪 / All pkgs (win+mac) (windows-latest, 20.19.0)

src/__tests__/debug.extended.test.ts > with colors

Error: Snapshot `with colors 1` mismatched Expected: ""test2 hello world"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:51:35

Check failure on line 51 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / 🧪 / All pkgs (win+mac) (windows-latest, 20.19.0)

src/__tests__/debug.extended.test.ts > with colors

Error: Snapshot `with colors 1` mismatched Expected: ""test2 hello world"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:51:35

Check failure on line 51 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / 🧪 / Others [v22.12.0]

src/__tests__/debug.extended.test.ts > with colors

Error: Snapshot `with colors 1` mismatched Expected: ""test2 hello world"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:51:35

Check failure on line 51 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / 🧪 / Others [v20.19.0]

src/__tests__/debug.extended.test.ts > with colors

Error: Snapshot `with colors 1` mismatched Expected: ""test2 hello world"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:51:35

Check failure on line 51 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / 🧪 / Others [v24]

src/__tests__/debug.extended.test.ts > with colors

Error: Snapshot `with colors 1` mismatched Expected: ""test2 hello world"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:51:35
expect(consoleWarnParams.length).toBe(1)
})

test('with multiple wild cards', async () => {
const consoleWarn = jest.spyOn(console, 'warn').mockImplementation()
const consoleWarn = vi.spyOn(console, 'warn')

process.env.DEBUG = 'test3:*:*:*'
process.env.DEBUG_COLORS = 'false'
Expand All @@ -62,12 +62,12 @@
Debug('test3:client:query-engine')('match2')

const consoleWarnParams = consoleWarn.mock.calls.map(mapper)
expect(consoleWarnParams[0][0]).toMatchInlineSnapshot(`"test3:client:query-engine:init match1"`)

Check failure on line 65 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / run_tests / All pkgs (win+mac) (windows-latest, 20.19.0)

src/__tests__/debug.extended.test.ts > with multiple wild cards

Error: Snapshot `with multiple wild cards 1` mismatched Expected: ""test3:client:query-engine:init match1"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:65:35

Check failure on line 65 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / run_tests / All pkgs (win+mac) (macos-14, 20.19.0)

src/__tests__/debug.extended.test.ts > with multiple wild cards

Error: Snapshot `with multiple wild cards 1` mismatched Expected: ""test3:client:query-engine:init match1"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:65:35

Check failure on line 65 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / run_tests / Others [v20.19.0]

src/__tests__/debug.extended.test.ts > with multiple wild cards

Error: Snapshot `with multiple wild cards 1` mismatched Expected: ""test3:client:query-engine:init match1"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:65:35

Check failure on line 65 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / run_tests / Others [v22.12.0]

src/__tests__/debug.extended.test.ts > with multiple wild cards

Error: Snapshot `with multiple wild cards 1` mismatched Expected: ""test3:client:query-engine:init match1"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:65:35

Check failure on line 65 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / run_tests / Others [v24]

src/__tests__/debug.extended.test.ts > with multiple wild cards

Error: Snapshot `with multiple wild cards 1` mismatched Expected: ""test3:client:query-engine:init match1"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:65:35

Check failure on line 65 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / 🧪 / All pkgs (win+mac) (macos-14, 20.19.0)

src/__tests__/debug.extended.test.ts > with multiple wild cards

Error: Snapshot `with multiple wild cards 1` mismatched Expected: ""test3:client:query-engine:init match1"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:65:35

Check failure on line 65 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / 🧪 / All pkgs (win+mac) (macos-14, 20.19.0)

src/__tests__/debug.extended.test.ts > with multiple wild cards

Error: Snapshot `with multiple wild cards 1` mismatched Expected: ""test3:client:query-engine:init match1"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:65:35

Check failure on line 65 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / 🧪 / All pkgs (win+mac) (windows-latest, 20.19.0)

src/__tests__/debug.extended.test.ts > with multiple wild cards

Error: Snapshot `with multiple wild cards 1` mismatched Expected: ""test3:client:query-engine:init match1"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:65:35

Check failure on line 65 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / 🧪 / All pkgs (win+mac) (windows-latest, 20.19.0)

src/__tests__/debug.extended.test.ts > with multiple wild cards

Error: Snapshot `with multiple wild cards 1` mismatched Expected: ""test3:client:query-engine:init match1"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:65:35

Check failure on line 65 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / 🧪 / Others [v22.12.0]

src/__tests__/debug.extended.test.ts > with multiple wild cards

Error: Snapshot `with multiple wild cards 1` mismatched Expected: ""test3:client:query-engine:init match1"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:65:35

Check failure on line 65 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / 🧪 / Others [v20.19.0]

src/__tests__/debug.extended.test.ts > with multiple wild cards

Error: Snapshot `with multiple wild cards 1` mismatched Expected: ""test3:client:query-engine:init match1"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:65:35

Check failure on line 65 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / 🧪 / Others [v24]

src/__tests__/debug.extended.test.ts > with multiple wild cards

Error: Snapshot `with multiple wild cards 1` mismatched Expected: ""test3:client:query-engine:init match1"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:65:35
expect(consoleWarnParams.length).toBe(1)
})

test('with multiple wild cards and filter', async () => {
const consoleWarn = jest.spyOn(console, 'warn').mockImplementation()
const consoleWarn = vi.spyOn(console, 'warn')

process.env.DEBUG = 'test4:*:query-engine:*'
process.env.DEBUG_COLORS = 'false'
Expand All @@ -77,13 +77,13 @@
Debug('test4:pool:query-engine:delete')('match3')

const consoleWarnParams = consoleWarn.mock.calls.map(mapper)
expect(consoleWarnParams[0][0]).toMatchInlineSnapshot(`"test4:client:query-engine:init match1"`)

Check failure on line 80 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / run_tests / All pkgs (win+mac) (windows-latest, 20.19.0)

src/__tests__/debug.extended.test.ts > with multiple wild cards and filter

Error: Snapshot `with multiple wild cards and filter 1` mismatched Expected: ""test4:client:query-engine:init match1"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:80:35

Check failure on line 80 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / run_tests / All pkgs (win+mac) (macos-14, 20.19.0)

src/__tests__/debug.extended.test.ts > with multiple wild cards and filter

Error: Snapshot `with multiple wild cards and filter 1` mismatched Expected: ""test4:client:query-engine:init match1"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:80:35

Check failure on line 80 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / run_tests / Others [v20.19.0]

src/__tests__/debug.extended.test.ts > with multiple wild cards and filter

Error: Snapshot `with multiple wild cards and filter 1` mismatched Expected: ""test4:client:query-engine:init match1"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:80:35

Check failure on line 80 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / run_tests / Others [v22.12.0]

src/__tests__/debug.extended.test.ts > with multiple wild cards and filter

Error: Snapshot `with multiple wild cards and filter 1` mismatched Expected: ""test4:client:query-engine:init match1"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:80:35

Check failure on line 80 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / run_tests / Others [v24]

src/__tests__/debug.extended.test.ts > with multiple wild cards and filter

Error: Snapshot `with multiple wild cards and filter 1` mismatched Expected: ""test4:client:query-engine:init match1"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:80:35

Check failure on line 80 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / 🧪 / All pkgs (win+mac) (macos-14, 20.19.0)

src/__tests__/debug.extended.test.ts > with multiple wild cards and filter

Error: Snapshot `with multiple wild cards and filter 1` mismatched Expected: ""test4:client:query-engine:init match1"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:80:35

Check failure on line 80 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / 🧪 / All pkgs (win+mac) (macos-14, 20.19.0)

src/__tests__/debug.extended.test.ts > with multiple wild cards and filter

Error: Snapshot `with multiple wild cards and filter 1` mismatched Expected: ""test4:client:query-engine:init match1"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:80:35

Check failure on line 80 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / 🧪 / All pkgs (win+mac) (windows-latest, 20.19.0)

src/__tests__/debug.extended.test.ts > with multiple wild cards and filter

Error: Snapshot `with multiple wild cards and filter 1` mismatched Expected: ""test4:client:query-engine:init match1"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:80:35

Check failure on line 80 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / 🧪 / All pkgs (win+mac) (windows-latest, 20.19.0)

src/__tests__/debug.extended.test.ts > with multiple wild cards and filter

Error: Snapshot `with multiple wild cards and filter 1` mismatched Expected: ""test4:client:query-engine:init match1"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:80:35

Check failure on line 80 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / 🧪 / Others [v22.12.0]

src/__tests__/debug.extended.test.ts > with multiple wild cards and filter

Error: Snapshot `with multiple wild cards and filter 1` mismatched Expected: ""test4:client:query-engine:init match1"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:80:35

Check failure on line 80 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / 🧪 / Others [v20.19.0]

src/__tests__/debug.extended.test.ts > with multiple wild cards and filter

Error: Snapshot `with multiple wild cards and filter 1` mismatched Expected: ""test4:client:query-engine:init match1"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:80:35

Check failure on line 80 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / 🧪 / Others [v24]

src/__tests__/debug.extended.test.ts > with multiple wild cards and filter

Error: Snapshot `with multiple wild cards and filter 1` mismatched Expected: ""test4:client:query-engine:init match1"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:80:35
expect(consoleWarnParams[1][0]).toMatchInlineSnapshot(`"test4:pool:query-engine:delete match3"`)
expect(consoleWarnParams.length).toBe(2)
})

test('with trailing wild cards', async () => {
const consoleWarn = jest.spyOn(console, 'warn').mockImplementation()
const consoleWarn = vi.spyOn(console, 'warn')

process.env.DEBUG = 'test5:*:*'
process.env.DEBUG_COLORS = 'false'
Expand All @@ -93,14 +93,14 @@
Debug('test5:pool:query-engine:delete')('match3')

const consoleWarnParams = consoleWarn.mock.calls.map(mapper)
expect(consoleWarnParams[0][0]).toMatchInlineSnapshot(`"test5:client:query-engine:init match1"`)

Check failure on line 96 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / run_tests / All pkgs (win+mac) (windows-latest, 20.19.0)

src/__tests__/debug.extended.test.ts > with trailing wild cards

Error: Snapshot `with trailing wild cards 1` mismatched Expected: ""test5:client:query-engine:init match1"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:96:35

Check failure on line 96 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / run_tests / All pkgs (win+mac) (macos-14, 20.19.0)

src/__tests__/debug.extended.test.ts > with trailing wild cards

Error: Snapshot `with trailing wild cards 1` mismatched Expected: ""test5:client:query-engine:init match1"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:96:35

Check failure on line 96 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / run_tests / Others [v20.19.0]

src/__tests__/debug.extended.test.ts > with trailing wild cards

Error: Snapshot `with trailing wild cards 1` mismatched Expected: ""test5:client:query-engine:init match1"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:96:35

Check failure on line 96 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / run_tests / Others [v22.12.0]

src/__tests__/debug.extended.test.ts > with trailing wild cards

Error: Snapshot `with trailing wild cards 1` mismatched Expected: ""test5:client:query-engine:init match1"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:96:35

Check failure on line 96 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / run_tests / Others [v24]

src/__tests__/debug.extended.test.ts > with trailing wild cards

Error: Snapshot `with trailing wild cards 1` mismatched Expected: ""test5:client:query-engine:init match1"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:96:35

Check failure on line 96 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / 🧪 / All pkgs (win+mac) (macos-14, 20.19.0)

src/__tests__/debug.extended.test.ts > with trailing wild cards

Error: Snapshot `with trailing wild cards 1` mismatched Expected: ""test5:client:query-engine:init match1"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:96:35

Check failure on line 96 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / 🧪 / All pkgs (win+mac) (macos-14, 20.19.0)

src/__tests__/debug.extended.test.ts > with trailing wild cards

Error: Snapshot `with trailing wild cards 1` mismatched Expected: ""test5:client:query-engine:init match1"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:96:35

Check failure on line 96 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / 🧪 / All pkgs (win+mac) (windows-latest, 20.19.0)

src/__tests__/debug.extended.test.ts > with trailing wild cards

Error: Snapshot `with trailing wild cards 1` mismatched Expected: ""test5:client:query-engine:init match1"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:96:35

Check failure on line 96 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / 🧪 / All pkgs (win+mac) (windows-latest, 20.19.0)

src/__tests__/debug.extended.test.ts > with trailing wild cards

Error: Snapshot `with trailing wild cards 1` mismatched Expected: ""test5:client:query-engine:init match1"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:96:35

Check failure on line 96 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / 🧪 / Others [v22.12.0]

src/__tests__/debug.extended.test.ts > with trailing wild cards

Error: Snapshot `with trailing wild cards 1` mismatched Expected: ""test5:client:query-engine:init match1"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:96:35

Check failure on line 96 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / 🧪 / Others [v20.19.0]

src/__tests__/debug.extended.test.ts > with trailing wild cards

Error: Snapshot `with trailing wild cards 1` mismatched Expected: ""test5:client:query-engine:init match1"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:96:35

Check failure on line 96 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / 🧪 / Others [v24]

src/__tests__/debug.extended.test.ts > with trailing wild cards

Error: Snapshot `with trailing wild cards 1` mismatched Expected: ""test5:client:query-engine:init match1"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:96:35
expect(consoleWarnParams[1][0]).toMatchInlineSnapshot(`"test5:client:query-engine match2"`)
expect(consoleWarnParams[2][0]).toMatchInlineSnapshot(`"test5:pool:query-engine:delete match3"`)
expect(consoleWarnParams.length).toBe(3)
})

test('with trailing wild cards and filter', async () => {
const consoleWarn = jest.spyOn(console, 'warn').mockImplementation()
const consoleWarn = vi.spyOn(console, 'warn')

process.env.DEBUG = 'test6:client:*'
process.env.DEBUG_COLORS = 'false'
Expand All @@ -110,13 +110,13 @@
Debug('test6:pool:query-engine:delete')('match3')

const consoleWarnParams = consoleWarn.mock.calls.map(mapper)
expect(consoleWarnParams[0][0]).toMatchInlineSnapshot(`"test6:client:query-engine:init match1"`)

Check failure on line 113 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / run_tests / All pkgs (win+mac) (windows-latest, 20.19.0)

src/__tests__/debug.extended.test.ts > with trailing wild cards and filter

Error: Snapshot `with trailing wild cards and filter 1` mismatched Expected: ""test6:client:query-engine:init match1"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:113:35

Check failure on line 113 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / run_tests / All pkgs (win+mac) (macos-14, 20.19.0)

src/__tests__/debug.extended.test.ts > with trailing wild cards and filter

Error: Snapshot `with trailing wild cards and filter 1` mismatched Expected: ""test6:client:query-engine:init match1"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:113:35

Check failure on line 113 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / run_tests / Others [v20.19.0]

src/__tests__/debug.extended.test.ts > with trailing wild cards and filter

Error: Snapshot `with trailing wild cards and filter 1` mismatched Expected: ""test6:client:query-engine:init match1"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:113:35

Check failure on line 113 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / run_tests / Others [v22.12.0]

src/__tests__/debug.extended.test.ts > with trailing wild cards and filter

Error: Snapshot `with trailing wild cards and filter 1` mismatched Expected: ""test6:client:query-engine:init match1"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:113:35

Check failure on line 113 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / run_tests / Others [v24]

src/__tests__/debug.extended.test.ts > with trailing wild cards and filter

Error: Snapshot `with trailing wild cards and filter 1` mismatched Expected: ""test6:client:query-engine:init match1"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:113:35

Check failure on line 113 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / 🧪 / All pkgs (win+mac) (macos-14, 20.19.0)

src/__tests__/debug.extended.test.ts > with trailing wild cards and filter

Error: Snapshot `with trailing wild cards and filter 1` mismatched Expected: ""test6:client:query-engine:init match1"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:113:35

Check failure on line 113 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / 🧪 / All pkgs (win+mac) (macos-14, 20.19.0)

src/__tests__/debug.extended.test.ts > with trailing wild cards and filter

Error: Snapshot `with trailing wild cards and filter 1` mismatched Expected: ""test6:client:query-engine:init match1"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:113:35

Check failure on line 113 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / 🧪 / All pkgs (win+mac) (windows-latest, 20.19.0)

src/__tests__/debug.extended.test.ts > with trailing wild cards and filter

Error: Snapshot `with trailing wild cards and filter 1` mismatched Expected: ""test6:client:query-engine:init match1"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:113:35

Check failure on line 113 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / 🧪 / All pkgs (win+mac) (windows-latest, 20.19.0)

src/__tests__/debug.extended.test.ts > with trailing wild cards and filter

Error: Snapshot `with trailing wild cards and filter 1` mismatched Expected: ""test6:client:query-engine:init match1"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:113:35

Check failure on line 113 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / 🧪 / Others [v22.12.0]

src/__tests__/debug.extended.test.ts > with trailing wild cards and filter

Error: Snapshot `with trailing wild cards and filter 1` mismatched Expected: ""test6:client:query-engine:init match1"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:113:35

Check failure on line 113 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / 🧪 / Others [v20.19.0]

src/__tests__/debug.extended.test.ts > with trailing wild cards and filter

Error: Snapshot `with trailing wild cards and filter 1` mismatched Expected: ""test6:client:query-engine:init match1"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:113:35

Check failure on line 113 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / 🧪 / Others [v24]

src/__tests__/debug.extended.test.ts > with trailing wild cards and filter

Error: Snapshot `with trailing wild cards and filter 1` mismatched Expected: ""test6:client:query-engine:init match1"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:113:35
expect(consoleWarnParams[1][0]).toMatchInlineSnapshot(`"test6:client:query-engine match2"`)
expect(consoleWarnParams.length).toBe(2)
})

test('with multiple wild cards and exclusion filter', async () => {
const consoleWarn = jest.spyOn(console, 'warn').mockImplementation()
const consoleWarn = vi.spyOn(console, 'warn')

process.env.DEBUG = 'test7:*:*,-test7:*:*:init'
process.env.DEBUG_COLORS = 'false'
Expand All @@ -126,13 +126,13 @@
Debug('test7:pool:query-engine:delete')('match3')

const consoleWarnParams = consoleWarn.mock.calls.map(mapper)
expect(consoleWarnParams[0][0]).toMatchInlineSnapshot(`"test7:client:query-engine match2"`)

Check failure on line 129 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / run_tests / All pkgs (win+mac) (windows-latest, 20.19.0)

src/__tests__/debug.extended.test.ts > with multiple wild cards and exclusion filter

Error: Snapshot `with multiple wild cards and exclusion filter 1` mismatched Expected: ""test7:client:query-engine match2"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:129:35

Check failure on line 129 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / run_tests / All pkgs (win+mac) (macos-14, 20.19.0)

src/__tests__/debug.extended.test.ts > with multiple wild cards and exclusion filter

Error: Snapshot `with multiple wild cards and exclusion filter 1` mismatched Expected: ""test7:client:query-engine match2"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:129:35

Check failure on line 129 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / run_tests / Others [v20.19.0]

src/__tests__/debug.extended.test.ts > with multiple wild cards and exclusion filter

Error: Snapshot `with multiple wild cards and exclusion filter 1` mismatched Expected: ""test7:client:query-engine match2"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:129:35

Check failure on line 129 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / run_tests / Others [v22.12.0]

src/__tests__/debug.extended.test.ts > with multiple wild cards and exclusion filter

Error: Snapshot `with multiple wild cards and exclusion filter 1` mismatched Expected: ""test7:client:query-engine match2"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:129:35

Check failure on line 129 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / run_tests / Others [v24]

src/__tests__/debug.extended.test.ts > with multiple wild cards and exclusion filter

Error: Snapshot `with multiple wild cards and exclusion filter 1` mismatched Expected: ""test7:client:query-engine match2"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:129:35

Check failure on line 129 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / 🧪 / All pkgs (win+mac) (macos-14, 20.19.0)

src/__tests__/debug.extended.test.ts > with multiple wild cards and exclusion filter

Error: Snapshot `with multiple wild cards and exclusion filter 1` mismatched Expected: ""test7:client:query-engine match2"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:129:35

Check failure on line 129 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / 🧪 / All pkgs (win+mac) (macos-14, 20.19.0)

src/__tests__/debug.extended.test.ts > with multiple wild cards and exclusion filter

Error: Snapshot `with multiple wild cards and exclusion filter 1` mismatched Expected: ""test7:client:query-engine match2"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:129:35

Check failure on line 129 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / 🧪 / All pkgs (win+mac) (windows-latest, 20.19.0)

src/__tests__/debug.extended.test.ts > with multiple wild cards and exclusion filter

Error: Snapshot `with multiple wild cards and exclusion filter 1` mismatched Expected: ""test7:client:query-engine match2"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:129:35

Check failure on line 129 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / 🧪 / All pkgs (win+mac) (windows-latest, 20.19.0)

src/__tests__/debug.extended.test.ts > with multiple wild cards and exclusion filter

Error: Snapshot `with multiple wild cards and exclusion filter 1` mismatched Expected: ""test7:client:query-engine match2"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:129:35

Check failure on line 129 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / 🧪 / Others [v22.12.0]

src/__tests__/debug.extended.test.ts > with multiple wild cards and exclusion filter

Error: Snapshot `with multiple wild cards and exclusion filter 1` mismatched Expected: ""test7:client:query-engine match2"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:129:35

Check failure on line 129 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / 🧪 / Others [v20.19.0]

src/__tests__/debug.extended.test.ts > with multiple wild cards and exclusion filter

Error: Snapshot `with multiple wild cards and exclusion filter 1` mismatched Expected: ""test7:client:query-engine match2"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:129:35

Check failure on line 129 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / 🧪 / Others [v24]

src/__tests__/debug.extended.test.ts > with multiple wild cards and exclusion filter

Error: Snapshot `with multiple wild cards and exclusion filter 1` mismatched Expected: ""test7:client:query-engine match2"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:129:35
expect(consoleWarnParams[1][0]).toMatchInlineSnapshot(`"test7:pool:query-engine:delete match3"`)
expect(consoleWarnParams.length).toBe(2)
})

test('with multiple wild cards and multiple exclusion filters', async () => {
const consoleWarn = jest.spyOn(console, 'warn').mockImplementation()
const consoleWarn = vi.spyOn(console, 'warn')

process.env.DEBUG = 'test8:*:*,-test8:*:*:init,-test8:pool:*'
process.env.DEBUG_COLORS = 'false'
Expand All @@ -142,12 +142,12 @@
Debug('test8:pool:query-engine:delete')('match3')

const consoleWarnParams = consoleWarn.mock.calls.map(mapper)
expect(consoleWarnParams[0][0]).toMatchInlineSnapshot(`"test8:client:query-engine match2"`)

Check failure on line 145 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / run_tests / All pkgs (win+mac) (windows-latest, 20.19.0)

src/__tests__/debug.extended.test.ts > with multiple wild cards and multiple exclusion filters

Error: Snapshot `with multiple wild cards and multiple exclusion filters 1` mismatched Expected: ""test8:client:query-engine match2"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:145:35

Check failure on line 145 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / run_tests / All pkgs (win+mac) (macos-14, 20.19.0)

src/__tests__/debug.extended.test.ts > with multiple wild cards and multiple exclusion filters

Error: Snapshot `with multiple wild cards and multiple exclusion filters 1` mismatched Expected: ""test8:client:query-engine match2"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:145:35

Check failure on line 145 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / run_tests / Others [v20.19.0]

src/__tests__/debug.extended.test.ts > with multiple wild cards and multiple exclusion filters

Error: Snapshot `with multiple wild cards and multiple exclusion filters 1` mismatched Expected: ""test8:client:query-engine match2"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:145:35

Check failure on line 145 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / run_tests / Others [v22.12.0]

src/__tests__/debug.extended.test.ts > with multiple wild cards and multiple exclusion filters

Error: Snapshot `with multiple wild cards and multiple exclusion filters 1` mismatched Expected: ""test8:client:query-engine match2"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:145:35

Check failure on line 145 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / run_tests / Others [v24]

src/__tests__/debug.extended.test.ts > with multiple wild cards and multiple exclusion filters

Error: Snapshot `with multiple wild cards and multiple exclusion filters 1` mismatched Expected: ""test8:client:query-engine match2"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:145:35

Check failure on line 145 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / 🧪 / All pkgs (win+mac) (macos-14, 20.19.0)

src/__tests__/debug.extended.test.ts > with multiple wild cards and multiple exclusion filters

Error: Snapshot `with multiple wild cards and multiple exclusion filters 1` mismatched Expected: ""test8:client:query-engine match2"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:145:35

Check failure on line 145 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / 🧪 / All pkgs (win+mac) (macos-14, 20.19.0)

src/__tests__/debug.extended.test.ts > with multiple wild cards and multiple exclusion filters

Error: Snapshot `with multiple wild cards and multiple exclusion filters 1` mismatched Expected: ""test8:client:query-engine match2"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:145:35

Check failure on line 145 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / 🧪 / All pkgs (win+mac) (windows-latest, 20.19.0)

src/__tests__/debug.extended.test.ts > with multiple wild cards and multiple exclusion filters

Error: Snapshot `with multiple wild cards and multiple exclusion filters 1` mismatched Expected: ""test8:client:query-engine match2"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:145:35

Check failure on line 145 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / 🧪 / All pkgs (win+mac) (windows-latest, 20.19.0)

src/__tests__/debug.extended.test.ts > with multiple wild cards and multiple exclusion filters

Error: Snapshot `with multiple wild cards and multiple exclusion filters 1` mismatched Expected: ""test8:client:query-engine match2"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:145:35

Check failure on line 145 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / 🧪 / Others [v22.12.0]

src/__tests__/debug.extended.test.ts > with multiple wild cards and multiple exclusion filters

Error: Snapshot `with multiple wild cards and multiple exclusion filters 1` mismatched Expected: ""test8:client:query-engine match2"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:145:35

Check failure on line 145 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / 🧪 / Others [v20.19.0]

src/__tests__/debug.extended.test.ts > with multiple wild cards and multiple exclusion filters

Error: Snapshot `with multiple wild cards and multiple exclusion filters 1` mismatched Expected: ""test8:client:query-engine match2"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:145:35

Check failure on line 145 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / 🧪 / Others [v24]

src/__tests__/debug.extended.test.ts > with multiple wild cards and multiple exclusion filters

Error: Snapshot `with multiple wild cards and multiple exclusion filters 1` mismatched Expected: ""test8:client:query-engine match2"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:145:35
expect(consoleWarnParams.length).toBe(1)
})

test('truncation when no wildcard is used', async () => {
const consoleWarn = jest.spyOn(console, 'warn').mockImplementation()
const consoleWarn = vi.spyOn(console, 'warn')

process.env.DEBUG = 'test9:client'
process.env.DEBUG_COLORS = 'false'
Expand All @@ -158,12 +158,12 @@
Debug('test9:client')('match4')

const consoleWarnParams = consoleWarn.mock.calls.map(mapper)
expect(consoleWarnParams[0][0]).toMatchInlineSnapshot(`"test9:client match4"`)

Check failure on line 161 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / run_tests / All pkgs (win+mac) (windows-latest, 20.19.0)

src/__tests__/debug.extended.test.ts > truncation when no wildcard is used

Error: Snapshot `truncation when no wildcard is used 1` mismatched Expected: ""test9:client match4"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:161:35

Check failure on line 161 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / run_tests / All pkgs (win+mac) (macos-14, 20.19.0)

src/__tests__/debug.extended.test.ts > truncation when no wildcard is used

Error: Snapshot `truncation when no wildcard is used 1` mismatched Expected: ""test9:client match4"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:161:35

Check failure on line 161 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / run_tests / Others [v20.19.0]

src/__tests__/debug.extended.test.ts > truncation when no wildcard is used

Error: Snapshot `truncation when no wildcard is used 1` mismatched Expected: ""test9:client match4"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:161:35

Check failure on line 161 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / run_tests / Others [v22.12.0]

src/__tests__/debug.extended.test.ts > truncation when no wildcard is used

Error: Snapshot `truncation when no wildcard is used 1` mismatched Expected: ""test9:client match4"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:161:35

Check failure on line 161 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / run_tests / Others [v24]

src/__tests__/debug.extended.test.ts > truncation when no wildcard is used

Error: Snapshot `truncation when no wildcard is used 1` mismatched Expected: ""test9:client match4"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:161:35

Check failure on line 161 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / 🧪 / All pkgs (win+mac) (macos-14, 20.19.0)

src/__tests__/debug.extended.test.ts > truncation when no wildcard is used

Error: Snapshot `truncation when no wildcard is used 1` mismatched Expected: ""test9:client match4"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:161:35

Check failure on line 161 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / 🧪 / All pkgs (win+mac) (macos-14, 20.19.0)

src/__tests__/debug.extended.test.ts > truncation when no wildcard is used

Error: Snapshot `truncation when no wildcard is used 1` mismatched Expected: ""test9:client match4"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:161:35

Check failure on line 161 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / 🧪 / All pkgs (win+mac) (windows-latest, 20.19.0)

src/__tests__/debug.extended.test.ts > truncation when no wildcard is used

Error: Snapshot `truncation when no wildcard is used 1` mismatched Expected: ""test9:client match4"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:161:35

Check failure on line 161 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / 🧪 / All pkgs (win+mac) (windows-latest, 20.19.0)

src/__tests__/debug.extended.test.ts > truncation when no wildcard is used

Error: Snapshot `truncation when no wildcard is used 1` mismatched Expected: ""test9:client match4"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:161:35

Check failure on line 161 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / 🧪 / Others [v22.12.0]

src/__tests__/debug.extended.test.ts > truncation when no wildcard is used

Error: Snapshot `truncation when no wildcard is used 1` mismatched Expected: ""test9:client match4"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:161:35

Check failure on line 161 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / 🧪 / Others [v20.19.0]

src/__tests__/debug.extended.test.ts > truncation when no wildcard is used

Error: Snapshot `truncation when no wildcard is used 1` mismatched Expected: ""test9:client match4"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:161:35

Check failure on line 161 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / 🧪 / Others [v24]

src/__tests__/debug.extended.test.ts > truncation when no wildcard is used

Error: Snapshot `truncation when no wildcard is used 1` mismatched Expected: ""test9:client match4"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:161:35
expect(consoleWarnParams.length).toBe(1)
})

test('object serialization', async () => {
const consoleWarn = jest.spyOn(console, 'warn').mockImplementation()
const consoleWarn = vi.spyOn(console, 'warn')

process.env.DEBUG = 'test10:client'
process.env.DEBUG_COLORS = 'false'
Expand All @@ -174,7 +174,7 @@
Debug('test10:client')(object)

const consoleWarnParams = consoleWarn.mock.calls.map(mapper)
expect(consoleWarnParams[0][0]).toMatchInlineSnapshot(`

Check failure on line 177 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / run_tests / All pkgs (win+mac) (windows-latest, 20.19.0)

src/__tests__/debug.extended.test.ts > object serialization

Error: Snapshot `object serialization 1` mismatched - Expected + Received - "test10:client { - "a": 1, - "b": { - "c": "[Circular *]", - "d": [ - "[Circular *]" - ] - } - }" + "test hello world" ❯ src/__tests__/debug.extended.test.ts:177:35

Check failure on line 177 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / run_tests / All pkgs (win+mac) (macos-14, 20.19.0)

src/__tests__/debug.extended.test.ts > object serialization

Error: Snapshot `object serialization 1` mismatched - Expected + Received - "test10:client { - "a": 1, - "b": { - "c": "[Circular *]", - "d": [ - "[Circular *]" - ] - } - }" + "test hello world" ❯ src/__tests__/debug.extended.test.ts:177:35

Check failure on line 177 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / run_tests / Others [v20.19.0]

src/__tests__/debug.extended.test.ts > object serialization

Error: Snapshot `object serialization 1` mismatched - Expected + Received - "test10:client { - "a": 1, - "b": { - "c": "[Circular *]", - "d": [ - "[Circular *]" - ] - } - }" + "test hello world" ❯ src/__tests__/debug.extended.test.ts:177:35

Check failure on line 177 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / run_tests / Others [v22.12.0]

src/__tests__/debug.extended.test.ts > object serialization

Error: Snapshot `object serialization 1` mismatched - Expected + Received - "test10:client { - "a": 1, - "b": { - "c": "[Circular *]", - "d": [ - "[Circular *]" - ] - } - }" + "test hello world" ❯ src/__tests__/debug.extended.test.ts:177:35

Check failure on line 177 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / run_tests / Others [v24]

src/__tests__/debug.extended.test.ts > object serialization

Error: Snapshot `object serialization 1` mismatched - Expected + Received - "test10:client { - "a": 1, - "b": { - "c": "[Circular *]", - "d": [ - "[Circular *]" - ] - } - }" + "test hello world" ❯ src/__tests__/debug.extended.test.ts:177:35

Check failure on line 177 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / 🧪 / All pkgs (win+mac) (macos-14, 20.19.0)

src/__tests__/debug.extended.test.ts > object serialization

Error: Snapshot `object serialization 1` mismatched - Expected + Received - "test10:client { - "a": 1, - "b": { - "c": "[Circular *]", - "d": [ - "[Circular *]" - ] - } - }" + "test hello world" ❯ src/__tests__/debug.extended.test.ts:177:35

Check failure on line 177 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / 🧪 / All pkgs (win+mac) (macos-14, 20.19.0)

src/__tests__/debug.extended.test.ts > object serialization

Error: Snapshot `object serialization 1` mismatched - Expected + Received - "test10:client { - "a": 1, - "b": { - "c": "[Circular *]", - "d": [ - "[Circular *]" - ] - } - }" + "test hello world" ❯ src/__tests__/debug.extended.test.ts:177:35

Check failure on line 177 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / 🧪 / All pkgs (win+mac) (windows-latest, 20.19.0)

src/__tests__/debug.extended.test.ts > object serialization

Error: Snapshot `object serialization 1` mismatched - Expected + Received - "test10:client { - "a": 1, - "b": { - "c": "[Circular *]", - "d": [ - "[Circular *]" - ] - } - }" + "test hello world" ❯ src/__tests__/debug.extended.test.ts:177:35

Check failure on line 177 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / 🧪 / All pkgs (win+mac) (windows-latest, 20.19.0)

src/__tests__/debug.extended.test.ts > object serialization

Error: Snapshot `object serialization 1` mismatched - Expected + Received - "test10:client { - "a": 1, - "b": { - "c": "[Circular *]", - "d": [ - "[Circular *]" - ] - } - }" + "test hello world" ❯ src/__tests__/debug.extended.test.ts:177:35

Check failure on line 177 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / 🧪 / Others [v22.12.0]

src/__tests__/debug.extended.test.ts > object serialization

Error: Snapshot `object serialization 1` mismatched - Expected + Received - "test10:client { - "a": 1, - "b": { - "c": "[Circular *]", - "d": [ - "[Circular *]" - ] - } - }" + "test hello world" ❯ src/__tests__/debug.extended.test.ts:177:35

Check failure on line 177 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / 🧪 / Others [v20.19.0]

src/__tests__/debug.extended.test.ts > object serialization

Error: Snapshot `object serialization 1` mismatched - Expected + Received - "test10:client { - "a": 1, - "b": { - "c": "[Circular *]", - "d": [ - "[Circular *]" - ] - } - }" + "test hello world" ❯ src/__tests__/debug.extended.test.ts:177:35

Check failure on line 177 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / 🧪 / Others [v24]

src/__tests__/debug.extended.test.ts > object serialization

Error: Snapshot `object serialization 1` mismatched - Expected + Received - "test10:client { - "a": 1, - "b": { - "c": "[Circular *]", - "d": [ - "[Circular *]" - ] - } - }" + "test hello world" ❯ src/__tests__/debug.extended.test.ts:177:35
"test10:client {
"a": 1,
"b": {
Expand All @@ -189,7 +189,7 @@
})

test('millisecond timestamps', async () => {
const consoleWarn = jest.spyOn(console, 'warn').mockImplementation()
const consoleWarn = vi.spyOn(console, 'warn')

process.env.DEBUG = 'test11:client'
process.env.DEBUG_COLORS = 'false'
Expand All @@ -198,13 +198,13 @@

const consoleWarnParams = consoleWarn.mock.calls.map(mapper)

expect(consoleWarnParams[0][0]).toMatchInlineSnapshot(`"test11:client match1"`)

Check failure on line 201 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / run_tests / All pkgs (win+mac) (windows-latest, 20.19.0)

src/__tests__/debug.extended.test.ts > millisecond timestamps

Error: Snapshot `millisecond timestamps 1` mismatched Expected: ""test11:client match1"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:201:35

Check failure on line 201 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / run_tests / All pkgs (win+mac) (macos-14, 20.19.0)

src/__tests__/debug.extended.test.ts > millisecond timestamps

Error: Snapshot `millisecond timestamps 1` mismatched Expected: ""test11:client match1"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:201:35

Check failure on line 201 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / run_tests / Others [v20.19.0]

src/__tests__/debug.extended.test.ts > millisecond timestamps

Error: Snapshot `millisecond timestamps 1` mismatched Expected: ""test11:client match1"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:201:35

Check failure on line 201 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / run_tests / Others [v22.12.0]

src/__tests__/debug.extended.test.ts > millisecond timestamps

Error: Snapshot `millisecond timestamps 1` mismatched Expected: ""test11:client match1"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:201:35

Check failure on line 201 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / run_tests / Others [v24]

src/__tests__/debug.extended.test.ts > millisecond timestamps

Error: Snapshot `millisecond timestamps 1` mismatched Expected: ""test11:client match1"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:201:35

Check failure on line 201 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / 🧪 / All pkgs (win+mac) (macos-14, 20.19.0)

src/__tests__/debug.extended.test.ts > millisecond timestamps

Error: Snapshot `millisecond timestamps 1` mismatched Expected: ""test11:client match1"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:201:35

Check failure on line 201 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / 🧪 / All pkgs (win+mac) (macos-14, 20.19.0)

src/__tests__/debug.extended.test.ts > millisecond timestamps

Error: Snapshot `millisecond timestamps 1` mismatched Expected: ""test11:client match1"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:201:35

Check failure on line 201 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / 🧪 / All pkgs (win+mac) (windows-latest, 20.19.0)

src/__tests__/debug.extended.test.ts > millisecond timestamps

Error: Snapshot `millisecond timestamps 1` mismatched Expected: ""test11:client match1"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:201:35

Check failure on line 201 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / 🧪 / All pkgs (win+mac) (windows-latest, 20.19.0)

src/__tests__/debug.extended.test.ts > millisecond timestamps

Error: Snapshot `millisecond timestamps 1` mismatched Expected: ""test11:client match1"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:201:35

Check failure on line 201 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / 🧪 / Others [v22.12.0]

src/__tests__/debug.extended.test.ts > millisecond timestamps

Error: Snapshot `millisecond timestamps 1` mismatched Expected: ""test11:client match1"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:201:35

Check failure on line 201 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / 🧪 / Others [v20.19.0]

src/__tests__/debug.extended.test.ts > millisecond timestamps

Error: Snapshot `millisecond timestamps 1` mismatched Expected: ""test11:client match1"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:201:35

Check failure on line 201 in packages/debug/src/__tests__/debug.extended.test.ts

View workflow job for this annotation

GitHub Actions / 🧪 / Others [v24]

src/__tests__/debug.extended.test.ts > millisecond timestamps

Error: Snapshot `millisecond timestamps 1` mismatched Expected: ""test11:client match1"" Received: ""test hello world"" ❯ src/__tests__/debug.extended.test.ts:201:35
expect(consoleWarnParams[0][1]?.match(/\+\d+ms/)).toBeTruthy()
expect(consoleWarnParams.length).toBe(1)
})

test('wildcard can be used like a regex at the end', async () => {
const consoleWarn = jest.spyOn(console, 'warn').mockImplementation()
const consoleWarn = vi.spyOn(console, 'warn')

process.env.DEBUG = 'test12:client*'
process.env.DEBUG_COLORS = 'false'
Expand All @@ -222,7 +222,7 @@
})

test('wildcard can be used like a regex in the middle', async () => {
const consoleWarn = jest.spyOn(console, 'warn').mockImplementation()
const consoleWarn = vi.spyOn(console, 'warn')

process.env.DEBUG = 'test13:client*init'
process.env.DEBUG_COLORS = 'false'
Expand All @@ -238,7 +238,7 @@
})

test('can manage complex inclusions and exclusions', async () => {
const consoleWarn = jest.spyOn(console, 'warn').mockImplementation()
const consoleWarn = vi.spyOn(console, 'warn')

// Accepted alternatives:
// - Anything that starts with 'test14:', followed by any number of characters, then ':query-engine:',
Expand All @@ -265,7 +265,7 @@
})

test('regex characters do not mess with matching', async () => {
const consoleWarn = jest.spyOn(console, 'warn').mockImplementation()
const consoleWarn = vi.spyOn(console, 'warn')

process.env.DEBUG = 'test15:\\w+'
process.env.DEBUG_COLORS = 'false'
Expand Down
1 change: 1 addition & 0 deletions packages/debug/src/__tests__/debug.original.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// copied from the original debug tests
import { describe, it } from 'vitest'

import Debug from '../index'

Expand Down
2 changes: 2 additions & 0 deletions packages/debug/src/__tests__/env-disabled.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { stripVTControlCharacters } from 'node:util'

import { describe, expect, test } from 'vitest'

import { sanitizeTestLogs } from '../util'

describe('debug', () => {
Expand Down
2 changes: 2 additions & 0 deletions packages/debug/src/__tests__/env-enabled.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { stripVTControlCharacters } from 'node:util'

import { describe, expect, test } from 'vitest'

import { removeISODate, sanitizeTestLogs } from '../util'

describe('debug', () => {
Expand Down
Loading
Loading