Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More โ†’
Socket
Sign inDemoInstall
Socket

poku

Package Overview
Dependencies
Maintainers
1
Versions
83
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

poku

๐Ÿท Poku makes testing easy for Node.js, Bun, Deno, and you at the same time.

  • 1.23.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
369
decreased by-20.99%
Maintainers
1
Weekly downloads
ย 
Created
Source
Poku's Logo

Poku

Enjoying Poku? Give him a star to show your support ๐ŸŒŸ

NPM Downloads Coverage License
GitHub Workflow Status (Linux) GitHub Workflow Status (OSX) GitHub Workflow Status (Windows)


๐Ÿท Websiteย ย โ€ขย ย ๐Ÿ“˜ Documentationย ย โ€ขย ย ๐Ÿงช Examplesย ย โ€ขย ย ๐Ÿง‘๐Ÿปโ€๐ŸŽ“ Quick Tutorials


Why does Poku exist?

๐Ÿ’ก Poku makes testing easy and brings the native JavaScript syntax back to tests, letting you to write tests intuitively.

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

check Easier and Less Verbose
ย ย ย ย ย check Run CJS (CommonJS) files directly with Deno
ย ย ย ย ย check Easily handle containers, servers, processes, and ports

check Safety and Reliability
ย ย ย ย ย check High isolation level per file
ย ย ย ย ย check Performant and lightweight


Quickstart

check Install

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

check Test

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

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

check Run

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

Features

Essentials

NameDescription
poku๐Ÿงช Test runner.
assert๐Ÿ”ฌ Test assertion (Node.js familiar API).

Helpers

NameDescription
test โ€ข describe โ€ข it๐Ÿคน๐Ÿปโ€โ™€๏ธ Organize, group, and isolate tests.
envFileโš™๏ธ Process an environment file (out-of-box).
beforeEach โ€ข afterEach๐Ÿƒ Hooks for test setup and teardown.
startScript๐ŸŒ Run package.json scripts in background.
startService๐ŸŒ Run files in background.
docker๐Ÿณ Build, start, compose, stop, remove, and test 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.
getPIDs๐Ÿ•ต๐Ÿป Debug processes IDs using ports and port ranges.

Common Options

NameDescription
watch๐Ÿฟ Watch for changes and re-run related test files.
parallel๐Ÿƒ๐Ÿปโ€โ™€๏ธ Run tests in parallel.
debug๐Ÿ•ต๐Ÿป Shows all logs.

and much more ๐Ÿ‘‡๐Ÿป


Documentation and Examples

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


Tutorials

Poku offers mini-lessons for different users needs in the Quick Tutorials section.


Common Issues


Contributing

See the Contributing Guide and please follow our Code of Conduct ๐Ÿš€


Security Policy

GitHub Workflow Status (with event)

Please check the SECURITY.md.


Quick Comparisons

Performance

Poku is continuously tested to ensure the following expectations for basic usage:

  • ~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

Install Size

Poku size is highly significant in development to ensure cost-saving CI that require servers that charge for storage and usage.


Limitations

  • Although it has no external dependencies, Poku is not all-in-one, so it doesn't have integrated features such as mocks, spies, coverage reports, etc., where you can use your favorite packages or native solutions.
  • Poku doesn't render components (such as Angular, React, etc.).
  • Our community is gradually building up.

Acknowledgements

Contributors

Contributors


License

Poku is under the MIT License.

Keywords

FAQs

Package last updated on 09 Jul 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with โšก๏ธ by Socket Inc