Skip to content
Proyectos

Acerca de

🐷 Poku facilita las pruebas de Node.js, Bun, Deno y las tuyas al mismo tiempo.

Herramientas de desarrollo

Cómo se miden estas cifras

Crecimiento de estrellas medido

in 24h
0
in 7 days
-1
in 15 days
-1
in 1 month
0

Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.

README.md

Original
Poku's Logo

Poku

Enjoying Poku? Give him a star to show your support 🌟

Version Downloads CI Coverage


🐷 Website  •  📘 Documentation  •  🧪 Examples  •  🧑🏻‍🎓 Tutorials


Why does Poku exist?

💡 Poku is a cross-platform test runner that brings the JavaScript essence back to testing.

v High isolation level per file
v Performant and lightweight
v Support for ESM, CJS, and TypeScript
v Plugin ecosystem for custom and official plugins
v Run the same test suite for Node.js, Bun, and Deno
v Easily handle servers, processes, ports, and containers ✨


Quickstart

v Install

🐢 Node.js

npm i -D poku

📘 TypeScript (Node.js)

npm i -D poku tsx

🍞 Bun

bun add -d poku

🦕 Deno (optional)

deno add npm:poku

v Test

import { assert } from 'poku';

assert(true, 'Poku will describe it 🐷');

v Run

Node.js (and TypeScript)

npx poku

Bun

bun --bun poku

Deno

deno run npm:poku

Features

v Essentials

poku 🧪 Test runner
assert • strict 🔬 Test assertion (Node.js familiar API)

v Common Helpers and Options

test • describe • it 🤹🏻‍♀️ Organize, group, and isolate tests
envFile ⚙️ Process an environment file
beforeEach • afterEach 🃏 Hooks for test setup and teardown
startScript • startService 🌐 Run scripts and files in background
docker 🐳 Build, start, compose, stop, and remove containers
kill 🔌 Terminate ports, port ranges, and PIDs
waitForPort 😴 Wait for specified ports to become active
waitForExpectedResult 🥱 Retry until an expected result or times out
skip ⏭️ Skip tests when necessary
only 🌌 Debug tests by enabling selective runs
coverage ☔️ Enable coverage collection
config ⚙️ Customize your Poku
watch 🍿 Watch for changes and re-run related test files
debug 🕵🏻 Shows all logs
  • and much more 🔥

FAQ


Quick Comparisons

Performance

  • ~5.3x faster than Jest (v30.4.2)
  • ~4.5x faster than Vitest (v4.1.6)
  • You can see how the tests are run and compared in the benchmark directory.

Installation Size

Install Size

Poku size ensures cost-saving CI for services that charge for storage and usage.


Security Policy

Please check the SECURITY.md.


Contributing

See the Contributing Guide and please follow our Code of Conduct 🚀


Acknowledgements

Contributors

My thanks to everyone who has dedicated their time and effort to improving Poku.

Contributors

Sponsors

Really thanks to everyone who has supported and keeps supporting my work.

Sponsors


License

Poku is under the MIT License.
Copyright © 2024-present Weslley Araújo and contributors.

Explorar proyectos relacionados

Cargando…