Safeguard
Tag

testing

Safeguard articles tagged "testing" — guides, analysis, and best practices for software supply chain and application security.

23 articles

SBOM

AI-Generated SBOMs: How Accurate Are They?

LLMs can now generate SBOMs from source code and documentation. We tested five AI SBOM generators against traditional tools to measure accuracy, completeness, and reliability.

Jul 16, 20267 min read
Best Practices

Mocking APIs for secure testing: MSW and json-server for error and auth flows

MSW intercepts requests at the network layer; json-server spins up a fake REST API in one command. Neither should ever touch a real backend or real credentials.

Jul 12, 20267 min read
Security

Jest Latest Version: Upgrading Safely in 2026

The Jest latest version is 30.x, and keeping current matters less for features than for cutting the pile of transitive dev dependencies older Jest drags in.

Jul 4, 20265 min read
Security

JavaScript DI: Dependency Injection Patterns and Their Security Impact

JavaScript DI (dependency injection) decouples your code, but the container that wires it together is also a place security can slip. Here is how to use it well.

Jun 27, 20266 min read
DevSecOps

Mocking in Python: unittest.mock, MagicMock, and Return Values

A practitioner's guide to Python unit test mocking: when to use Mock vs MagicMock, setting return values and side effects, patching in the right place, and the assertions that make a mock worth writing.

Jun 14, 20267 min read
Open Source

jest-environment-jsdom: Setup, Gotchas, and Supply Chain Notes

Setting up npm jest-environment-jsdom correctly, why it stopped shipping with Jest, and what its jsdom dependency tree means for your test toolchain's security.

Jun 8, 20266 min read
DevSecOps

Unit Testing in Node.js: A Practical, Security-Aware Setup

A working guide to unit testing in Node.js with the built-in node:test runner — structure, mocking, coverage, and the security-relevant code paths most suites forget to cover.

May 30, 20267 min read
Open Source

babel-jest: What It Does and How to Keep Your Test Toolchain Safe

babel-jest npm sits in almost every Jest install, quietly transforming your code before tests run. Here is what it does and why test toolchains deserve supply chain attention.

May 27, 20266 min read
AppSec

How a Web Application Penetration Test Actually Works (and What It Finds)

A web application penetration test simulates a real attacker against your app. Here is what the phases look like and how to act on the report.

May 12, 20266 min read
Security

Application Fuzzing Explained: Finding Bugs Before Attackers Do

Application fuzzing throws malformed and unexpected input at your code to surface crashes, memory errors, and logic flaws automatically. Here is how it works and how to run it.

May 6, 20265 min read
Open Source

Is supertest npm Safe to Use? A Security Review for Node Testing

A security-minded review of supertest npm, the SuperAgent-driven HTTP testing library: where it fits, what its dependency surface looks like, and how to keep test code from leaking into production risk.

May 3, 20266 min read
Open Source

React 18.3: The Safe Stepping Stone to React 19

React 18.3 is functionally identical to 18.2 but adds deprecation warnings for React 19. Upgrading through it is a security move as much as a compatibility one.

Apr 27, 20265 min read

Self-healing security runs on Safeguard.

Your first fix PR is minutes away.

No sales call required, even your agent can complete the purchase over MCP.

testing — Safeguard Blog