You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//Reset handlers after each test for test isolation
106
+
//在每次测试后重置处理器以实现测试隔离
107
107
afterEach(() =>server.resetHandlers())
108
108
```
109
109
:::
110
110
111
-
> Configuring the server with `onUnhandledRequest: 'error'`ensures that an error is thrown whenever there is a request that does not have a corresponding request handler.
There is much more to MSW. You can access cookies and query parameters, define mock error responses, and much more! To see all you can do with MSW, read [their documentation](https://mswjs.io/docs).
0 commit comments