Skip to content

Commit 375152d

Browse files
committed
test(plugin-email): spell the console-intercept disarm in the package's own vitest config
Claude-Session: https://claude.ai/code/session_01ADHkmR4astMzES5UkW47jW Co-authored-by: Claude <noreply@anthropic.com>
1 parent 48ab8da commit 375152d

1 file changed

Lines changed: 12 additions & 4 deletions

File tree

‎packages/plugins/plugin-email/vitest.config.ts‎

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,19 @@
11
// Copyright (c) 2026 ObjectStack. Licensed under the Apache-2.0 license.
22

3-
// The shared preset (see its header), merged with this package's one setting.
4-
import { mergeConfig } from 'vitest/config';
5-
import preset from '../../../vitest.preset.mts';
3+
import { defineConfig } from 'vitest/config';
64

7-
export default mergeConfig(preset, {
5+
// The shared preset's one setting, plus this package's own.
6+
// `check-console-intercept-disarm.mjs` reads this file's source, so the
7+
// setting is spelled here instead of merged in from `vitest.preset.mts`.
8+
export default defineConfig({
89
test: {
10+
// A late console.* must not redden a green suite (#10374): vitest's worker
11+
// forwards console output over RPC and discards the promise, and a write
12+
// landing after teardown's rpcDone() snapshot is rejected into an unhandled
13+
// error — a fully green run that exits 1. Disarming removes the mechanism.
14+
// Mechanism + measured costs: examples/app-showcase/vitest.config.ts.
15+
// Enforced repo-wide by scripts/check-console-intercept-disarm.mjs.
16+
disableConsoleIntercept: true,
917
// #13517: quiet the registry's per-item registration chatter — the
1018
// engine's own `OS_REGISTRY_LOG` seam, not a change to its shipped
1119
// default. Enforced by scripts/check-registry-log-declared.mjs, which

0 commit comments

Comments
 (0)