Commit b65f4be
fix(test): use dynamic import for rcTokenHint to preserve logger mock
Static imports are hoisted and evaluate before mock.module() runs,
so login.ts would bind the real consola logger instead of fakeLog —
breaking the interactive prompt tests. Pull rcTokenHint into the
existing dynamic import block that was already there for this reason.
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>1 parent 9aee126 commit b65f4be
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
81 | 83 | | |
82 | | - | |
83 | 84 | | |
84 | 85 | | |
85 | 86 | | |
| |||
0 commit comments