javascript-testing-patterns
Implements comprehensive testing strategies in JavaScript/TypeScript using Jest, Vitest, and Testing Library for robust applications.
Install this skill
Security score
The javascript-testing-patterns skill was audited on Mar 8, 2026 and we found 17 security issues across 4 threat categories. Review the findings below before installing.
Categories Tested
Security Issues
Template literal with variable interpolation in command context
| 218 | const response = await fetch(`https://api.example.com/users/${id}`); |
Template literal with variable interpolation in command context
| 445 | info: (message: string) => console.log(`INFO: ${message}`), |
Template literal with variable interpolation in command context
| 446 | error: (message: string) => console.error(`ERROR: ${message}`), |
Template literal with variable interpolation in command context
| 454 | logger.info(`Processing order ${orderId}`); |
Template literal with variable interpolation in command context
| 456 | logger.info(`Order ${orderId} processed successfully`); |
Template literal with variable interpolation in command context
| 580 | .get(`/api/users/${userId}`) |
Template literal with variable interpolation in command context
| 617 | .set("Authorization", `Bearer ${token}`) |
Fetch to external URL
| 226 | const response = await fetch("https://api.example.com/users", { |
Access to .env file
| 309 | host: process.env.SMTP_HOST, |
Access to .env file
| 312 | user: process.env.SMTP_USER, |
Access to .env file
| 313 | pass: process.env.SMTP_PASS, |
Access to .env file
| 319 | from: process.env.EMAIL_FROM, |
External URL reference
| 218 | const response = await fetch(`https://api.example.com/users/${id}`); |
External URL reference
| 226 | const response = await fetch("https://api.example.com/users", { |
External URL reference
| 262 | expect(fetch).toHaveBeenCalledWith("https://api.example.com/users/1"); |
External URL reference
| 288 | "https://api.example.com/users", |
External URL reference
| 915 | avatar: 'https://example.com/avatar.jpg', |