Skip to content
ํ”„๋กœ์ ํŠธ

์†Œ๊ฐœ

๐Ÿท Poku๋Š” Node.js, Bun, Deno์™€ ์—ฌ๋Ÿฌ๋ถ„์˜ ํ…Œ์ŠคํŠธ๋ฅผ ๋™์‹œ์— ๊ฐ„ํŽธํ•˜๊ฒŒ ๋งŒ๋“ค์–ด ์ค๋‹ˆ๋‹ค.

๊ฐœ๋ฐœ ๋„๊ตฌ

์ด ์ˆ˜์น˜๋ฅผ ์ธก์ •ํ•˜๋Š” ๋ฐฉ๋ฒ•

์ธก์ •๋œ ์Šคํƒ€ ์ฆ๊ฐ€

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

์„œ๋กœ ๊ฒน์น˜๋Š” ๊ธฐ๊ฐ„์˜ ์ˆœ์ฆ๊ฐ€๋Ÿ‰์ด๋ฉฐ ์ผ๋ณ„ ํ•ฉ๊ณ„๊ฐ€ ์•„๋‹™๋‹ˆ๋‹ค. ์ธก์ •๊ฐ’์ด ์—†์œผ๋ฉด ๋น„์›Œ ๋‘ก๋‹ˆ๋‹ค. ์Šคํƒ€๋Š” ๊ด€์‹ฌ๋„๋ฅผ ๋‚˜ํƒ€๋‚ด๋ฉฐ ํ’ˆ์งˆ์„ ๋ณด์žฅํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.

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.

๊ด€๋ จ ํ”„๋กœ์ ํŠธ ์‚ดํŽด๋ณด๊ธฐ

๋ถˆ๋Ÿฌ์˜ค๋Š” ์ค‘โ€ฆ