A collection of miscellaneous test helper functions for Node.js, version 0.3.2. Provides lightweight utilities to simplify common testing patterns. The package is minimal and has no dependencies, making it easy to integrate. It is released sporadically, with no active development since 2020. Differentiators include simplicity and zero external dependencies compared to larger testing libraries like Jest or Mocha.
npm install test-helprNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates importing and using three main helpers: createMockContext, mockFn, and stubConsole.
Use import syntax: import { ... } from 'test-helpr'Consider migrating to a more actively maintained library like sinon.
Reset mock.calls = [] in beforeEach or afterEach.
Run npm install test-helpr and use import syntax.
Use import { ... } from 'test-helpr' instead of import testHelpr from 'test-helpr'.Replace require() with import, or use dynamic import() if necessary.
No dependency data recorded yet.