Commit e498e16
authored
Fix flaky upgrade-dependency-version test (#7242)
* Fix flaky upgrade-dependency-version test
The test asserted an exact resolved version (4.17.23) for lodash
when using a ^4.17.20 constraint, but npm now resolves to 4.18.1.
Use semver.satisfies() instead to check that the resolved version
satisfies the constraint, making the test resilient to new lodash
releases.
* Fix flaky add-dependency test for lodash version check
Same issue as the upgrade-dependency-version test: the lock file
version assertion used startsWith("4.17.") which breaks now that
lodash 4.18.1 exists. Use semver.satisfies() instead.1 parent 300f097 commit e498e16
File tree
2 files changed
+9
-5
lines changed- rewrite-javascript/rewrite/test/javascript/recipes
2 files changed
+9
-5
lines changedLines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
346 | 347 | | |
347 | 348 | | |
348 | 349 | | |
349 | | - | |
| 350 | + | |
350 | 351 | | |
351 | | - | |
352 | | - | |
| 352 | + | |
| 353 | + | |
353 | 354 | | |
354 | 355 | | |
355 | 356 | | |
| |||
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
505 | 506 | | |
506 | 507 | | |
507 | 508 | | |
508 | | - | |
| 509 | + | |
509 | 510 | | |
510 | | - | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
511 | 514 | | |
512 | 515 | | |
513 | 516 | | |
| |||
0 commit comments