Commit 129089d
fix: flaky
`dispatcher.test.ts` nullifies the lazy registration hook via
`setRegistrationHook(null)` in its `beforeEach`. When Bun runs it
before `dbt-first-execution.test.ts`, the hook is permanently dead
and `Dispatcher.call("dbt.profiles")` throws "No native handler".
Fix: replace fragile lazy-hook reliance with explicit `beforeAll`
imports of the registration modules, guaranteeing handlers exist
regardless of test file ordering.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>dbt Profiles Auto-Discovery tests in CI1 parent a63d378 commit 129089d
1 file changed
Lines changed: 10 additions & 7 deletions
Lines changed: 10 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | 21 | | |
29 | 22 | | |
30 | 23 | | |
| |||
119 | 112 | | |
120 | 113 | | |
121 | 114 | | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
122 | 125 | | |
123 | 126 | | |
124 | 127 | | |
| |||
0 commit comments