Repository navigation
Commit 4534d04
authored
fix: pin @sinonjs/fake-timers type resolution in bundled sinon types (#33886)
* fix: pin @sinonjs/fake-timers type resolution in bundled sinon types
Cypress ships @types/sinon in its npm package via cli/scripts/sync-typedefs.ts.
The upstream file imports types from '@sinonjs/fake-timers', which TypeScript
will resolve to a user-installed copy of that package when present — newer
versions (15.3+) reorganized exports and break Cypress's bundled
@types/sinonjs__fake-timers, surfacing as TS2694 at user build time.
Patch the upstream import to use the @types name 'sinonjs__fake-timers'
directly so resolution always lands on the version Cypress ships, regardless
of what the user has installed.1 parent d7cd85a commit 4534d04
2 files changed
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
5 | 16 | | |
6 | 17 | | |
7 | 18 | | |
| |||
0 commit comments