Skip to main content

  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

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 --parallel to run tests in parallel.

  • 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.