JSPM

  • Created
  • Published
  • Downloads 5293
  • Score
    100M100P100Q159153F
  • License MIT

๐Ÿท Poku makes testing easy for Node.js, Bun, Deno and you 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

Logo

Poku

Poku can show you how simple testing can be ๐ŸŒฑ

NPM Downloads Coverage License
GitHub Workflow Status (with event) GitHub Workflow Status (with event) GitHub Workflow Status (with event)

Enjoying Poku? Give him a star to show your support โญ๏ธ


Why does Poku exist?

Poku takes on the testers' difficulties by itself and lets you focus on the tests.

check No configurations
     check Auto detect ESM and CJS
     check Auto detect Typescript files
     check Run the same test suite for Node.js, Bun and Deno

check Easier and Less Verbose
     check Node.js familiar API
     check Easily test your server just by running it ๐Ÿš€
     check Run CJS (CommonJS) files directly with Deno
     check Easily handle services, servers, processes and ports

check Safety and Reliability
     check High isolation level per file
     check Performant and lightweight
     check Compatible with Coverage tools
     check Poku doesn't use eval nor global state ๐Ÿ”
          check In other words, you can run your tests directly, without relying on Poku


Quickstart

Install

Install Size

Node.js
TypeScript + Node.js
Bun
Deno
npm i -D poku
npm i -D poku tsx
bun add -d poku
deno add npm:poku

Test

test/file.test.mjs
import { assert } from 'poku';

assert(true, 'Poku will describe it ๐Ÿท');

Run

Node.js (and TypeScript)
Bun
Deno
npx poku
bunx poku
deno run npm:poku

That's it ๐ŸŽ‰


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


Available Methods

Essentials

  • Test
  • Background Services

Helpers


Documentation and Examples

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


Contributing

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.

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


Philosophy

Please check the Philosophy section from Documentation.


Security Policy

GitHub Workflow Status (with event)

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


Quick Comparisons

Performance

Poku is continuously tested (CI) to ensure the following expectations:

  • ~4x faster than Jest (v29.7.0)
  • ~3x faster than Vitest (v1.6.0)
  • ~1x faster than Mocha (v10.4.0) + Chai (v5.1.1)

You can see how the tests are run and compared in the benchmark directory.


Installation Size


Limitations

  • Poku community is gradually building up ๐Ÿค
  • Although it has no external dependencies, Poku is not all-in-one, so it doesn't have features such as mocks and spies, where you can use your favorite packages or native solutions.

Acknowledgements

Contributors

Contributors


License

Poku is under the MIT License.