์๊ฐ
๐ท Poku๋ Node.js, Bun, Deno์ ์ฌ๋ฌ๋ถ์ ํ ์คํธ๋ฅผ ๋์์ ๊ฐํธํ๊ฒ ๋ง๋ค์ด ์ค๋๋ค.
๊ฐ๋ฐ ๋๊ตฌ์ธก์ ๋ ์คํ ์ฆ๊ฐ
- in 24h
- 0
- in 7 days
- -1
- in 15 days
- -1
- in 1 month
- 0
์๋ก ๊ฒน์น๋ ๊ธฐ๊ฐ์ ์์ฆ๊ฐ๋์ด๋ฉฐ ์ผ๋ณ ํฉ๊ณ๊ฐ ์๋๋๋ค. ์ธก์ ๊ฐ์ด ์์ผ๋ฉด ๋น์ ๋ก๋๋ค. ์คํ๋ ๊ด์ฌ๋๋ฅผ ๋ํ๋ด๋ฉฐ ํ์ง์ ๋ณด์ฅํ์ง ์์ต๋๋ค.
README.md
OriginalPoku
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
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 โจ
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
Node.js (and TypeScript)
npx poku
Bun
bun --bun poku
Deno
deno run npm:poku
Features
Essentials
| poku | ๐งช Test runner |
| assert โข strict | ๐ฌ Test assertion (Node.js familiar API) |
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
- You can see how the tests are run and compared in the benchmark directory.
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
Contributors
My thanks to everyone who has dedicated their time and effort to improving Poku.
Sponsors
Really thanks to everyone who has supported and keeps supporting my work.
License
Poku is under the MIT License.
Copyright ยฉ 2024-present Weslley Araรบjo and contributors.
๊ด๋ จ ํ๋ก์ ํธ ์ดํด๋ณด๊ธฐ
๋ถ๋ฌ์ค๋ ์คโฆ