Oriel — AI & technology worth noticing, every day.

Test the npm Package, Not Just the Monorepo

Post · https://dev.to/gde/test-the-npm-package-not-just-the-monorepo-2j1e

A tracing adapter can pass its internal tests while capturing nothing in an installed...

First seen by Oriel on .

AI summary

This article argues that package integrations require installed-package smoke tests using real SDK consumers, because monorepo tests can miss runtime identity and wrapper failures.

  • The separate smoke test targets agent-inspect@6.31.35, @agent-inspect/mcp@6.31.35, and MCP SDK 1.31.0 through public package entry points.
  • Duplicate bundled runtime state can hide active asynchronous contexts, while spread-based or incorrectly bound wrappers can break SDK object behavior.
  • A real MCP Client and Server communicate through InMemoryTransport.createLinkedPair(), with an echo tool, independent execution counting, trace readback, and cleanup.
  • Both ESM and CommonJS consumers passed on Linux with Node 24.22.1 and macOS arm64 with Node 22.22.3.
  • The fixture excludes Windows, HTTP and stdio transports, OAuth, reconnect behavior, every SDK method, and all peer-dependency versions; Docker commands were reviewed but not executed.

#npm #mcp sdk #integration testing #docker

Generated by gpt-5.6-sol. Check the original for details.

Metric trends

Last 30 days · Up to 120 recorded samples per source and metric, with reposts kept separate · First and latest retained

Reactions

Total public reactions reported by the source; distinct from points and likes.

  • DEV Community: 33, latest observation ; +7 over observed period since

Comments

Comment count reported by the source.

  • DEV Community: 18, latest observation ; +3 over observed period since

Aliases

SourceExternal IDURL
DEV Community5031605https://dev.to/gde/test-the-npm-package-not-just-the-monorepo-2j1e Read discussion