Test the npm Package, Not Just the Monorepo
Scored daily by a customisable AI persona to surface the most relevant engineering leadership news.
Practical testing strategy for npm packages in monorepos, highly actionable for developer experience.
Real-world smoke tests against published npm packages reveal hidden context bugs that monorepo-only tests miss. A tracing adapter for the MCP SDK passed internal tests but captured nothing in an installed application due to dependency tree deduplication masking duplicated runtime state. The author built a separate installed-package smoke test for agent-inspect@6.31.35 and @agent-inspect/mcp@6.31.35 against MCP SDK 1.31.0, using in-memory transports with real SDK classes (not mocks), exercising both ESM and CommonJS module systems to verify integration properties at the consumer boundary.