You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test(objectql,verify,runtime): declare OS_REGISTRY_LOG=warn in each suite's own vitest harness (#14016)
* test(objectql,verify,runtime): declare OS_REGISTRY_LOG=warn in each suite's own vitest harness
Measured per suite on origin/main b1b7d60, one full run each:
objectql 16,194 stdout lines · 4,744 [Registry] · 10,984 structured-logger
verify 5,670 stdout lines · 2,323 [Registry] · 3,113 structured-logger
runtime 6,730 stdout lines · 1,155 [Registry] · 4,760 structured-logger
Against the console-carried population each suite emits (the structured
logger writes to process.stdout directly and is a separate question),
[Registry] is 91.5% in objectql, 91.3% in verify and 59.0% in runtime.
OS_REGISTRY_LOG is @objectstack/objectql's own published seam for that
verbosity (SchemaRegistryOptions.logLevel / REGISTRY_LOG_LEVELS). The
engine's shipped default stays 'info', and no library code learns what a
test runner is: the request lives in each harness, declaratively.
Claude-Session: https://claude.ai/code/session_01F3jdziLbAPGeceVNmSox5L
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
* test(objectql): let registry-log-level.test.ts own the variable it is about
The package harness now declares OS_REGISTRY_LOG=warn for every worker, and
this file's subject IS that variable. Its `afterEach` already deleted the
var; the symmetric `beforeEach` was missing, so the FIRST case ran at 'warn'
under a name that says 'info' — and stayed green, because both of its
expectations are negative ("not called").
Measured rather than reasoned: with the premise assertion added and the
`beforeEach` withheld, the case fails with `expected 'warn' to be 'info'`.
Both "default level" cases now assert the level they run at, so a future
harness key cannot silently re-point them again.
Claude-Session: https://claude.ai/code/session_01F3jdziLbAPGeceVNmSox5L
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
---------
Co-authored-by: Claude <noreply@anthropic.com>
0 commit comments