@diotoborg/ipsa-magni-debitis
v3.8.92
Published
[node-version-url]: https://github.com/nodejs/node [bun-version-url]: https://github.com/oven-sh/bun [deno-version-url]: https://github.com/denoland/deno [typescript-url]: https://github.com/microsoft/TypeScript [ci-linux-url]: https://github.com/diotobor
Downloads
2,093
Maintainers
Keywords
Readme
Poku
Poku can show you how simple testing can be 🌱
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.
No configurations Auto detect ESM and CJS Auto detect Typescript files Run the same test suite for Node.js, Bun and Deno
Easier and Less Verbose Node.js familiar API Easily test your server just by running it 🚀 Run CJS (CommonJS) files directly with Deno Easily handle services, servers, processes and ports
Safety and Reliability
High isolation level per file
Performant and lightweight
Compatible with Coverage tools
Poku doesn't use eval
nor global state 🔐
In other words, you can run your tests directly, without relying on Poku
Quickstart
Install
npm i -D @diotoborg/ipsa-magni-debitis
npm i -D @diotoborg/ipsa-magni-debitis tsx
bun add -d @diotoborg/ipsa-magni-debitis
deno add npm:@diotoborg/ipsa-magni-debitis
Test
import { assert } from '@diotoborg/ipsa-magni-debitis';
assert(true, 'Poku will describe it 🐷');
Run
npx @diotoborg/ipsa-magni-debitis
bunx @diotoborg/ipsa-magni-debitis
deno run npm:@diotoborg/ipsa-magni-debitis
That's it 🎉
🐷 Documentation • 🧪 Examples • 🔬 Compare the Most Popular Test Runners
Available Methods
Essentials
- Test
- @diotoborg/ipsa-magni-debitis (test runner)
- assert (test assertion)
- Background Services
- startScript (run
package.json
scripts in a background process) - startService (run files in a background process)
- startScript (run
- Processes
Helpers
- beforeEach and afterEach
- test
- describe
- and much more ✨
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
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:
- [x] ~4x faster than Jest (v29.7.0)
- [x] ~3x faster than Vitest (v1.6.0)
- [x] ~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
License
Poku is under the MIT License.