Skip to main content
Version: v3.x.x

Comparing Test Runners

Test RunnerIsolationCJSESMnode_modulesBunDeno
🐷 Poku (2.0.0)βœ…βœ…βœ…βœ…βœ…
Jest (29.7.0)βœ…βœ…experimental❓❓
Mocha (10.4.0)βŒβœ…βœ…β“β“
Vitest (1.6.0)βœ…deprecatedβœ…β“β“

Quick Comparisons​

Performance​

Poku is continuously tested to ensure the following expectations for basic usage:

  • ~4x faster than Jest (v29.7.0)
  • ~4x faster than Vitest (v2.1.3)
  • ~2x faster than Mocha (v10.7.3) β€” even with test file isolation

Installation Size​

Install Size


TypeScript Comparison​

Comparison using TypeScript (no compile) and ESM to show a simple error test:

  • Let's starting from installation πŸ”¬

Poku​

Installation​

npm i -D poku tsx

Creating the test file​

test/index.test.ts

import { assert } from 'poku';

assert.deepStrictEqual('1', 1, 'Number should not be a text');

Running tests​

npx poku

That's it πŸŽ‰

tip

For simple tests, Poku doesn't need to use test, describe or it, since the message is already in the assert.

  • Poku's assert is just an abstraction from original assert from Node.js.
  • It means: No new learning is needed πŸŽ‰

Adopt a Poku for yourself 🩡