Skip to content

Commit eaffcf7

Browse files
authored
chore: fix test with node 24 (#910)
1 parent b9fa501 commit eaffcf7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
fail-fast: false
2424
matrix:
2525
os: [ubuntu-latest, windows-latest, macos-latest]
26-
node-version: [20.x, 22.x]
26+
node-version: [20.x, 22.x, 24.x]
2727

2828
steps:
2929
- uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0

test/route-update.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import sinon from 'sinon';
44
import Router from '../lib/router.js';
55
import * as helpers from './helpers.js';
66

7-
const {default: crossSpawn} = await esmocha.mock('cross-spawn');
7+
const {default: crossSpawn} = await esmocha.mock('cross-spawn', {default: esmocha.fn()});
88
const {update} = await import('../lib/routes/update.js');
99
esmocha.reset();
1010

0 commit comments

Comments
 (0)