Commit 2eded7f
⬆️ Bump
Dependabot bumped `chai` to v6, but CI then fails at `npm install`:
npm error ERESOLVE unable to resolve dependency tree
npm error peer chai@"^4.0.0" from sinon-chai@3.7.0
`sinon-chai@3.7.0` only peer-depends on `chai@^4`, so it can't coexist
with `chai@6`.
This change bumps `sinon-chai` to `^4.0.1`, whose peer range is
`chai@^5 || ^6`, which clears the conflict. `sinon-chai@4` ships as ESM
with a default export, so under Node's `require(esm)` interop
`require('sinon-chai')` resolves to the module namespace rather than the
plugin function; we now reach for `.default` so `chai.use()` gets the
function it expects.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>sinon-chai to support chai@6
1 parent ae9a6bd commit 2eded7f
2 files changed
Lines changed: 2 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 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
0 commit comments