@@ -8,13 +8,13 @@ import {describe, it, afterEach} from 'node:test';
88
99import sinon from 'sinon' ;
1010
11- import type { Context } from '../../src/tools/ToolDefinition.js' ;
1211import {
1312 analyzeInsight ,
1413 queryChromeUXReport ,
1514 startTrace ,
1615 stopTrace ,
1716} from '../../src/tools/performance.js' ;
17+ import type { Context } from '../../src/tools/ToolDefinition.js' ;
1818import type { TraceResult } from '../../src/trace-processing/parse.js' ;
1919import {
2020 parseRawTraceBuffer ,
@@ -289,7 +289,7 @@ describe('performance', () => {
289289 await queryChromeUXReport . handler (
290290 { params : { origin : 'https://example.com' } } ,
291291 response ,
292- { } as any ,
292+ { } as Context ,
293293 ) ;
294294
295295 assert . ok ( fetchStub . calledOnce ) ;
@@ -313,7 +313,7 @@ describe('performance', () => {
313313 await queryChromeUXReport . handler (
314314 { params : { url : 'https://example.com' } } ,
315315 response ,
316- { } as any ,
316+ { } as Context ,
317317 ) ;
318318
319319 assert . ok ( fetchStub . calledOnce ) ;
@@ -334,7 +334,7 @@ describe('performance', () => {
334334 } ,
335335 } ,
336336 response ,
337- { } as any ,
337+ { } as Context ,
338338 ) ;
339339
340340 assert . ok (
@@ -350,7 +350,7 @@ describe('performance', () => {
350350 await queryChromeUXReport . handler (
351351 { params : { } } ,
352352 response ,
353- { } as any ,
353+ { } as Context ,
354354 ) ;
355355
356356 assert . ok (
@@ -370,7 +370,7 @@ describe('performance', () => {
370370 await queryChromeUXReport . handler (
371371 { params : { origin : 'https://example.com' } } ,
372372 response ,
373- { } as any ,
373+ { } as Context ,
374374 ) ;
375375
376376 assert . ok ( fetchStub . calledOnce ) ;
0 commit comments