This violates the no-real-network rule. Use MSW (Mock Service Worker) to intercept API calls, start the server in test setup, reset handlers after each test, and close it after the suite. Tests should assert user-visible behavior, not network availability.
Installs into .claude/skills of the current project.
Are you the author of React Testing?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/hoangnguyen0403-react-testing-e2cb84f7)
This violates the no-real-network rule. Use MSW (Mock Service Worker) to intercept API calls, start the server in test setup, reset handlers after each test, and close it after the suite. Tests should assert user-visible behavior, not network availability.