poku
v2.7.1
Published
🐷 Poku makes testing easy for Node.js, Bun, Deno, and you at the same time.
Downloads
3,139
Maintainers
Readme
Poku
Enjoying Poku? Give him a star to show your support 🌟
🐷 Website • 📘 Documentation • 🧪 Examples • 🧑🏻🎓 Tutorials
Why does Poku exist?
💡 Poku is a cross-platform test runner that brings the JavaScript essence back to testing.
High isolation level per file Performant and lightweight Run CommonJS files directly with Deno Auto detect ESM, CJS, and TypeScript files Run the same test suite for Node.js, Bun, and Deno Easily handle servers, processes, ports, and even containers ✨
Quickstart
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
Test
import { assert } from 'poku';
assert(true, 'Poku will describe it 🐷');
Run
npx poku
bunx poku
deno run npm:poku
Features
Essentials
Helpers
Common Options
and much more 👇🏻
Documentation and Examples
To see the detailed documentation, please visit the Documentation and Examples sections in the Poku's website.
Tutorials
Poku offers mini-lessons for different users needs in the Quick Tutorials section.
Common Issues
- Avoiding conflicts in environments with multiple platforms installed.
- Properly running asynchronous tests on the same file.
- Using Poku without installing on Deno and alternatives to JSR.
- Migrating from version 1.x to version 2.x.
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
- You can see how the tests are run and compared in the benchmark directory.
- Comparing Poku and native test runners (discussion).
Installation 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
License
Poku is under the MIT License. Copyright © 2024-present Weslley Araújo and Poku contributors.