Skip to content

test(node): Migrate logging integration tests to create*Tests helpers#21955

Merged
mydea merged 1 commit into
developfrom
fn/migrate-logging-integration-tests
Jul 6, 2026
Merged

test(node): Migrate logging integration tests to create*Tests helpers#21955
mydea merged 1 commit into
developfrom
fn/migrate-logging-integration-tests

Conversation

@mydea

@mydea mydea commented Jul 3, 2026

Copy link
Copy Markdown
Member

Moves the winston, pino and consola node integration test suites onto the shared runner helpers, splitting each subject.ts/inline server into an instrument.mjs (Sentry.init) + scenario.mjs pair.

  • pinocreateEsmTests (keeps its existing ESM-only coverage; one call per scenario/instrument combo, dropping the manual .withInstrument() since the helper wires it via flags)
  • winstoncreateCjsTests (keeps its existing CJS-only coverage; env-var-driven behaviour preserved via .withEnv())
  • consolacreateCjsTests (keeps its existing CJS-only coverage; one call per scenario sharing a single instrument)

Each suite runs in the same module format it did before, so there is no coverage change — this only moves them onto the create*Tests pattern. All assertions are preserved verbatim.

🤖 Generated with Claude Code

Move the winston, pino and consola node integration test suites onto the
shared runner helpers, splitting each `subject.ts`/inline server into an
`instrument.mjs` (Sentry.init) + `scenario.mjs` pair.

- pino: `createEsmTests` (keeps its existing ESM-only coverage)
- winston, consola: `createCjsTests` (keeps their existing CJS-only coverage)

No coverage change vs. the previous per-suite run mode; each suite runs in
the same module format it did before.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@mydea mydea requested a review from a team as a code owner July 3, 2026 11:58
@mydea mydea requested review from JPeer264 and andreiborza and removed request for a team July 3, 2026 11:58
@mydea mydea merged commit 2fc3798 into develop Jul 6, 2026
57 checks passed
@mydea mydea deleted the fn/migrate-logging-integration-tests branch July 6, 2026 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants