poku
TypeScript icon, indicating that this package has built-in type declarations

1.14.0 • Public • Published
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 Don't export your server (just run it) 🚀
     check Run the same test suite for Node.js, Bun and Deno.

check Safety and Reliability
     check High isolation level per file
     check Compatible with Coverage tools
     check Run CJS (CommonJS) files directly with Deno
     check Easily handle services, servers, processes and ports
     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
  • Processes
    • kill (terminate Ports, Port Ranges and PIDs)
    • getPIDs (get all processes IDs using ports and port ranges)

Helpers


Documentation and Examples

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.


Contributing

Please check the CONTRIBUTING.md for instructions 🚀


Philosophy

Please check the Philosophy section from Documentation.


License

Poku is under the MIT License.


Security Policy

GitHub Workflow Status (with event)

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


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.

Overview

Sequential Concurrent

Acknowledgements

Contributors

Contributors


Author

wellwelwel
@wellwelwel

Versions

Current Tags

Version History

Package Sidebar

Install

npm i poku

Homepage

poku.io

Weekly Downloads

448

Version

1.14.0

License

MIT

Unpacked Size

128 kB

Total Files

79

Last publish

Collaborators

  • weslley.io