Skip to content

Commit 8d5adc5

Browse files
mcollinaclaude
andcommitted
chore: update devDependencies to latest versions
- @sinonjs/fake-timers: ^11.2.2 → ^15.1.0 - @typescript-eslint/eslint-plugin: ^5.30.3 → ^8.54.0 - @typescript-eslint/parser: ^5.30.3 → ^8.54.0 - tsd: ^0.32.0 → ^0.33.0 - wait-on: ^8.0.0 → ^9.0.3 Fix gateway refresh test timing for fake-timers v15 compatibility. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent df53996 commit 8d5adc5

2 files changed

Lines changed: 11 additions & 9 deletions

File tree

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@
3636
"devDependencies": {
3737
"@mercuriusjs/federation": "^5.0.0",
3838
"@mercuriusjs/gateway": "^5.0.0",
39-
"@sinonjs/fake-timers": "^11.2.2",
39+
"@sinonjs/fake-timers": "^15.1.0",
4040
"@types/node": "^25.0.2",
4141
"@types/ws": "^8.5.10",
42-
"@typescript-eslint/eslint-plugin": "^5.30.3",
43-
"@typescript-eslint/parser": "^5.30.3",
42+
"@typescript-eslint/eslint-plugin": "^8.54.0",
43+
"@typescript-eslint/parser": "^8.54.0",
4444
"autocannon": "^8.0.0",
4545
"borp": "^0.21.0",
4646
"concurrently": "^9.0.0",
@@ -49,9 +49,9 @@
4949
"pre-commit": "^1.2.2",
5050
"snazzy": "^9.0.0",
5151
"standard": "^17.1.0",
52-
"tsd": "^0.32.0",
52+
"tsd": "^0.33.0",
5353
"typescript": "^5.4.2",
54-
"wait-on": "^8.0.0"
54+
"wait-on": "^9.0.3"
5555
},
5656
"dependencies": {
5757
"@fastify/error": "^4.0.0",

test/refresh.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -195,12 +195,14 @@ describe('gateway refresh', () => {
195195
messageService.graphql.replaceSchema(buildFederationSchema(newSchema))
196196
messageService.graphql.defineResolvers(resolvers)
197197

198-
await clock.tickAsync(2000)
198+
// Tick past the polling interval and allow async operations to settle
199+
await clock.tickAsync(3000)
199200

200-
// We need the event loop to actually spin twice to
201+
// We need the event loop to actually spin multiple times to
201202
// be able to propagate the change
202-
await immediate()
203-
await immediate()
203+
for (let i = 0; i < 10; i++) {
204+
await immediate()
205+
}
204206

205207
{
206208
const res = await gateway.inject({

0 commit comments

Comments
 (0)