Enjoying Poku? Give him a star to show your support π
π· WebsiteΒ Β β’Β Β π DocumentationΒ Β β’Β Β π§ͺ ExamplesΒ Β β’Β Β π§π»βπ Tutorials
π‘ Poku is a cross-platform test runner that brings the JavaScript essence back to testing.
High isolation level per file
Performant and lightweight
Support for ESM, CJS, and TypeScript
Plugin ecosystem for custom and official plugins
Run the same test suite for Node.js, Bun, and Deno
Easily handle servers, processes, ports, and containers β¨
npm i -D pokunpm i -D poku tsxbun add -d pokudeno add npm:pokuimport { assert } from 'poku';
assert(true, 'Poku will describe it π·');npx pokubun --bun pokudeno run npm:poku| poku | π§ͺ Test runner |
| assert β’ strict | π¬ Test assertion (Node.js familiar API) |
| 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 π₯
- You can see how the tests are run and compared in the benchmark directory.
Poku size ensures cost-saving CI for services that charge for storage and usage.
Please check the SECURITY.md.
See the Contributing Guide and please follow our Code of Conduct π
My thanks to everyone who has dedicated their time and effort to improving Poku.
Really thanks to everyone who has supported and keeps supporting my work.
Poku is under the MIT License.
Copyright Β© 2024-present Weslley AraΓΊjo and contributors.