Skip to content

Commit 0bafd00

Browse files
committed
test(app-showcase): declare OS_REGISTRY_LOG in the vitest harness
This config's own `disableConsoleIntercept` docblock deferred the question in as many words: "most of it `[Registry]` registration chatter. Quieting THAT is a separate question about `@objectstack/objectql`'s own default log level, not about this setting." This answers it the way the four earlier harnesses did — the level is declared HERE, in the harness, through the engine's own `OS_REGISTRY_LOG` seam. `gap-fill.test.ts` constructs the registry it reaches. objectql's shipped `'info'` default is unchanged for every production reader. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012zGPuVVX3deAx9LdjK8jCk
1 parent c537e5f commit 0bafd00

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

examples/app-showcase/vitest.config.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,5 +98,18 @@ export default defineConfig({
9898
// test output behaves, because ObjectQL's logger writes to `process.stdout`
9999
// directly and never went through this path at all.
100100
disableConsoleIntercept: true,
101+
// #13517 / #15425: quiet the SchemaRegistry's per-item registration
102+
// chatter — the engine's OWN `OS_REGISTRY_LOG` seam
103+
// (`SchemaRegistryOptions.logLevel` / `REGISTRY_LOG_LEVELS`, objectql's
104+
// registry.ts), not a change to its shipped 'info' default and not a
105+
// library that sniffs `process.env.VITEST`. ⭐ This answers the question
106+
// the docblock above deferred in as many words — "most of it
107+
// `[Registry]` registration chatter. Quieting THAT is a separate question
108+
// about `@objectstack/objectql`'s own default log level, not about this
109+
// setting." It is: the level is declared HERE, in the harness, and the
110+
// shipped default is untouched. `gap-fill.test.ts` constructs the
111+
// registry this reaches. Enforced by
112+
// scripts/check-registry-log-declared.mjs.
113+
env: { OS_REGISTRY_LOG: 'warn' },
101114
},
102115
});

0 commit comments

Comments
 (0)