Skip to main content
Version: v4.x.x (Canary)

  1. Install Poku.
  2. See how to use assertions.
  3. Then learn how to use Poku to run all your test files at once.

🧑🏻‍🔬 Need to test an API? Check the startService and startScript.
🚪 Need to handle processes and ports? Check the kill and waitForPort.
🐳 Need to mount and unmount containers before/after tests? Check the dockerfile and compose.
🧠 Here's a quick example covering the main difference across common test runners.

🔍 Use the site search to make it easier.


Quickstart

Install

npm i -D poku

Canary version:

npm i -D poku@canary

Test

import { assert } from 'poku';

assert(true, 'Poku will describe it 🐷');
  • Change from .mjs to .js by defining "type": "module" in your package.json.
  • Note that these examples use ESM, but you can use CJS as well.

Run

npx poku

Try the flag --sequential to run tests sequentially.

  • That's it 🎉

Documentation

Initially the documentation, examples, and quick tutorials are based on Node.js and ESM usage, but you can use all the options normally for both Bun and Deno, including CJS.


Common Issues


Security Policy

GitHub Workflow Status (with event)

Please check the SECURITY.md.


Acknowledgements

Contributors

Contributors

License

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