Commit 52f6af8
committed
fix(formula): spy the WARN sink through globalThis, and correct the flip docblock (#6132)
Two follow-ups from running the gate list:
- `check:type-check-debt` went red: `@objectstack/formula`'s TEST_DEBT ledger
records 17 raw tsc errors and the new suite made it 18. The added error was
`TS2584: Cannot find name 'console'` — this package compiles with neither the
DOM lib nor `@types/node`, which is why the compiler itself reaches the sink
through `globalThis`. The test now spies on the same object the compiler
writes to, rather than a differently-obtained one, which is also the only
version of this spy that cannot go green over a silent sink. Back to 17.
- The switch docblock named three test files that do not exist (the suites were
consolidated into one). It now names the real file and states the flip's
measured blast radius: 10 tests, all in that file, and nothing else.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Bx3H8DJhBsmgDoMp8Tz87T1 parent 78f4c4c commit 52f6af8
2 files changed
Lines changed: 21 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
51 | 54 | | |
52 | 55 | | |
53 | 56 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
62 | 73 | | |
63 | 74 | | |
64 | 75 | | |
65 | 76 | | |
66 | | - | |
| 77 | + | |
67 | 78 | | |
68 | 79 | | |
69 | 80 | | |
| |||
0 commit comments