File tree Expand file tree Collapse file tree
packages/plugins/plugin-email Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments