msw-handlers
Pass
Audited by Gen Agent Trust Hub on Oct 12, 2026
Risk Level: SAFE
Full Analysis
- [SAFE]: The skill provides documentation and evaluation criteria for using the Mock Service Worker (MSW) library. All code samples and instructions follow standard testing best practices, including the use of environment guards (
process.env.NODE_ENV !== 'production') to prevent test code and mock data from being included in production bundles. - [SAFE]: External links point to the official MSW documentation (mswjs.io) and well-known testing tools. No suspicious remote code execution or unverifiable dependencies were identified. The suggested installation commands (
npm i msw --save-dev) target standard, widely-used development packages. - [SAFE]: The evaluation tasks (evals) focus on resolving common software engineering and testing pitfalls such as mock drift, state leakage between tests, and bundle size issues. These tasks promote the maintainability and reliability of the test suite without introducing security vulnerabilities.
- [SAFE]: Analysis of the provided scripts and markdown content found no evidence of prompt injection, data exfiltration, or persistence mechanisms. The use of placeholders like
api.example.comis consistent with educational and documentation standards.
Audit Metadata