Skip to content
SPECIFICTION
Get listed

@hapi/lab vs Pure Test

@hapi/lab

hapi.dev

Pure Test

github.com

Side by side

Figure@hapi/labPure Test
Price from—Free
Free plan—Yes
Free trial——
Open source——
Web—Yes
Windows—Yes
macOS—Yes
Linux—Yes
Self-hosted—Yes
Plans published01
Spec score · JavaScript Testing Frameworks7.0 (#20)8.0 (#6)
InstallationThe documented installation commands use npm, Yarn, or pnpm to add @hapi/lab to a project.The README gives `npm install @igorjs/pure-test --save-dev` as the installation command.
Purpose@hapi/lab is a test utility for Node.js.Pure Test is a minimal, zero-dependency, cross-runtime test runner.
TypeScriptLab includes TypeScript definitions and has a CLI option to run TypeScript test files using the project’s TypeScript module and configuration.TypeScript test discovery is opt-in with `--ts` on Node.js and automatic on Deno and Bun.

Plans

@hapi/lab

No plans published.

@hapi/lab pricing →

Pure Test

  • Apache-2.0 open-source softwareFree

Pure Test pricing →

In their own words

@hapi/lab

@hapi/lab has no write-up on Specifiction yet; its figures are above.

Visit hapi.dev

Pure Test

Pure Test is a free, minimal test runner for projects using JavaScript runtimes and browsers. It supports Node.js, Deno, Bun, Cloudflare Workers, and browsers, and its API includes test suites, assertions, lifecycle hooks, spies, fake timers, and retry and timeout options. The CLI provides multiple reporters, test filters, file watching, sharding, and fail-fast execution. For CI, `--shard` splits test files across jobs and exits cleanly when a shard has no files. TypeScript test discovery requires `--ts` on Node.js; it is automatic on Deno and Bun. A Deno adapter registers tests as `Deno.test()` calls for use with `deno test` and its filtering and IDE workflows. The README includes migration guides for Jest and Vitest and notes compatibility with common mock methods. Pure Test does not isolate tests, so lifecycle hooks are recommended for managing state. The project is beta, and its APIs may change. It is Apache-2.0 licensed, with no paid plans stated.

Visit github.com