| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 27 天前 | ||
| 5 年前 | ||
| 27 天前 | ||
| 27 天前 | ||
| 16 天前 | ||
| 16 天前 | ||
| 16 天前 | ||
| 27 天前 | ||
| 25 天前 | ||
| 27 天前 | ||
| 27 天前 | ||
| 27 天前 | ||
| 1 年前 | ||
| 27 天前 | ||
| 1 年前 |
Integration tests
This directory contains integration tests for Mock Service Worker.
This directory categorizes all test suites based on the library's execution or API domain:
/protocols/http, tests for HTTP mocking./protocols/graphql, tests for GraphQL mocking./protocols/websocket, tests for WebSocket mocking./protocols/sse, tests for Server-Sent Events mocking./msw-api, tests for the library's API.
Test structure
*.test.tsruns in Node.js and Vitest Browser Mode.*.node.test.tsruns only in Node.js.*.browser.test.tsruns only in Vitest Browser Mode.*.pw.test.tsuses Playwright for full-page lifecycle or multi-tab behavior.
Define initial handlers with defineTestNetwork({ handlers }). Each test receives the
actual setupServer() or setupWorker() instance as the network fixture.
Contributing
Please see the Contribution guidelines for the instructions on how to run and add new tests. Thank you.