Skip to content

Commit 03e993b

Browse files
committed
chore(scripts): ledger the #7926 test's driver-memory mock in the census (#7926)
check:driver-memory-census went red on the new dev-plugin-optional-load-failure.test.ts: its `vi.mock('@objectstack/driver-memory')` is a DECLARATION the ledger did not cover, which is the #6664 defect shape. Disposition recorded rather than silenced: axis `mock-replacement`, the ledger's existing category for a factory that REPLACES the module. This one differs from its four plugin-dev siblings — they make the module resolve as ERR_MODULE_NOT_FOUND, this one supplies a present InMemoryDriver whose constructor throws — but it never calls `importOriginal`, so the real driver is not loaded here either. Not a migration candidate: DevPlugin resolves the specifier by name, so a test of that load site must name it, and nothing is stored, so there is no test backend for sqlite `:memory:` to replace. The ruled set is unchanged, so the "#6664 census: 2 ruled consumers" marker in both ruled files still holds. No investment in the driver (#5499 freeze). Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B3Kurx8qufrDzNjk4rag7V
1 parent 11f189b commit 03e993b

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎scripts/driver-memory-census.ledger.json‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,12 @@
8989
"axis": "mock-replacement",
9090
"why": "the mock makes the module resolve as ERR_MODULE_NOT_FOUND, so this file pins DevPlugin's behaviour when the driver is ABSENT. It is the opposite of a consumer."
9191
},
92+
{
93+
"file": "packages/plugins/plugin-dev/src/dev-plugin-optional-load-failure.test.ts",
94+
"kind": "mock",
95+
"axis": "mock-replacement",
96+
"why": "the #7926 pin's PRESENT-but-failing arm, and the one plugin-dev mock that is not the absent-module shape: the factory supplies its own `InMemoryDriver` whose constructor throws, so DevPlugin's load site can be shown reporting a construction failure instead of 'not installed'. It never calls `importOriginal`, so the real driver is not loaded here either. Not a migration candidate: DevPlugin resolves this specifier BY NAME, so a test of that load site must name it, and nothing is stored — there is no test backend here for sqlite `:memory:` to replace."
97+
},
9298
{
9399
"file": "packages/plugins/plugin-dev/src/dev-plugin-tenancy-failfast.test.ts",
94100
"kind": "mock",

0 commit comments

Comments
 (0)