Commit e535189
committed
Address review feedback on the new UI coverage tests
- welcomeConfig.test.ts: assert repeated reads after a malformed file keep
returning the default rather than caching a bad parse, and add a case
proving recovery once the file is replaced and the cache is reset.
- validation.test.ts: stop asserting that validateKeyFile('~') is valid.
That claimed a directory is a valid key file, which is a production quirk
(filed as #3402), and dev-docs/RULES.md forbids enshrining a bug as
specification. The bare-tilde branch is now pinned by asserting that '~'
and the literal home path receive the same verdict, which still fails if
expandTilde's bare-tilde branch is broken.
- interactive-ui.test.ts: name the scenario file that actually sets
LLXPRT_CODE_WELCOME_CONFIG_PATH so the comment cannot be misread as the
test setting it.1 parent 5615e12 commit e535189
3 files changed
Lines changed: 29 additions & 6 deletions
File tree
- packages/cli/src
- config
- ui/components/ProfileCreateWizard
- scripts/tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
123 | 136 | | |
124 | 137 | | |
125 | 138 | | |
| |||
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
160 | | - | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
161 | 167 | | |
162 | 168 | | |
163 | 169 | | |
164 | | - | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
165 | 173 | | |
166 | 174 | | |
167 | 175 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
171 | 173 | | |
172 | 174 | | |
173 | 175 | | |
| |||
0 commit comments