File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -6,17 +6,17 @@ import { setupWorker } from 'msw/browser';
66
77import { setupFakeTimers } from './fake-timers' ;
88
9+ const worker = setupWorker (
10+ ...handlers ,
11+ http . get ( '/assets/*' , passthrough ) ,
12+ http . all ( / .* \/ p e r c y \/ .* / , passthrough ) ,
13+ http . get ( 'https://:avatars.githubusercontent.com/u/:id' , passthrough ) ,
14+ ) ;
15+
916export default function ( hooks ) {
1017 setupWindowMock ( hooks ) ;
1118 setupFakeTimers ( hooks , '2017-11-20T12:00:00' ) ;
1219
13- let worker = setupWorker (
14- ...handlers ,
15- http . get ( '/assets/*' , passthrough ) ,
16- http . all ( / .* \/ p e r c y \/ .* / , passthrough ) ,
17- http . get ( 'https://:avatars.githubusercontent.com/u/:id' , passthrough ) ,
18- ) ;
19-
2020 hooks . before ( ( ) => worker . start ( { quiet : true , onUnhandledRequest : 'error' } ) ) ;
2121 hooks . afterEach ( ( ) => worker . resetHandlers ( ) ) ;
2222 hooks . afterEach ( ( ) => db . reset ( ) ) ;
You can’t perform that action at this time.
0 commit comments