Commit d3ae00c
committed
Add execa mock to fix timeout on Node.js 20
The UI prompt tests were timing out on Node.js 20 because they were
missing a mock for the execa call to get the registry URL. This caused
the tests to hang when trying to execute `npm config get registry`.
Added execa mock to both version.js and tags.js tests to return a
fake registry URL, which prevents the actual command execution and
makes the tests run much faster (600-900ms instead of 4-8s).1 parent cb55fe4 commit d3ae00c
2 files changed
+9
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
26 | 29 | | |
27 | 30 | | |
28 | 31 | | |
| |||
150 | 153 | | |
151 | 154 | | |
152 | 155 | | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
153 | 159 | | |
154 | 160 | | |
155 | 161 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
21 | 24 | | |
22 | 25 | | |
23 | 26 | | |
| |||
0 commit comments