JSPM

  • Created
  • Published
  • Downloads 4468
  • Score
    100M100P100Q153138F
  • License MIT

๐Ÿท Poku brings human-friendly testing and assertion to Node.js, Bun & Deno at the same time.

Package Exports

  • poku
  • poku/lib/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (poku) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Poku

Logo

Poku is your test runner pet for Node.js, Bun and Deno combining flexibility, parallel and sequential runs, human-friendly assertion errors and high isolation level.

By creating Poku, my aim is to show that testing can be simpler.

Node.js Version Bun Version Deno Version TypeScript Version GitHub Workflow Status (with event) GitHub Workflow Status (with event) NPM Downloads License

Enjoying Poku? Consider giving him a star โญ๏ธ


๐Ÿท Documentation Website โ€ข ๐Ÿ”ฌ Compare Poku with the Most Popular Test Runners โ€ข ๐Ÿงช Examples


Why Poku?

Let's make describe, beforeEach and everything else easier ๐Ÿš€

  • Supports ESM and CJS
  • Designed to be highly intuitive
  • Compatible with Coverage tools
  • Node.js, Bun and Deno compatibility
  • Zero configurations, except you want
  • Allows both API (in-code) and CLI usage
  • Poku adapts to your test, not the other way around
  • You can use Poku's assert with every test runner you want
  • And much more!

  • Install Size
  • Zero external dependencies ๐ŸŒฑ

Documentation

  • See detailed usage in Documentation section for Poku's CLI, API (in-code) and assert, advanced concepts and much more.

Examples

  • See real example usages in Examples section for Poku's + Mock, Virutal DOM and more.

Overview

poku

Sequential Concurrent

See the complete poku documentation.


assert

Using poku Using node

See the complete assert's documentation.


Install

Node.js

npm i -D poku

TypeScript (Node.js)

npm i -D poku tsx

Bun

bun add -d poku

Deno

import { poku } from 'npm:poku';

Quick Start

poku

CLI

Try to set the flag --parallel before the target path ๐Ÿš€

npx poku targetPath
npx poku targetPathA,targetPathB
bun poku targetPath
bun poku targetPathA,targetPathB
deno run npm:poku targetPath
deno run npm:poku targetPathA,targetPathB

API (In-code)

Node.js, TypeScript (Node.js) and Bun
import { poku } from 'poku';

await poku(['targetPath']);
Deno
import { poku } from 'npm:poku';

await poku(['targetPath']);

assert

Use it exactly as it's for Node.js ๐Ÿ’š


To see the detailed documentation, please visit the Documentation and Examples sections in the Poku's website.


Community

I'm continuously working to improve Poku. If you've got something interesting to share, feel free to submit a Pull Request. If you notice something wrong, I'd appreciate if you'd open an Issue.


Acknowledgements


Contributing

Please check the CONTRIBUTING.md for instructions ๐Ÿš€


License

Poku is under the MIT License.


Security Policy

Please check the SECURITY.md and the section Is Poku Safe? from Documentation.