Skip to main content
Version: v3.x.x

Running tests in specific platforms​

npx poku
  • It runs Poku through Node.js and ensures that all tests are run with Node.js (or tsx for TypeScript tests).
bun poku
  • It runs Poku through Bun and ensures that all tests are run with Bun.
deno run npm:poku
  • It runs Poku through Deno and ensures that all tests are run with Deno.
tip

For TypeScript users, there's no need to install tsx for Bun and Deno, as they both run TypeScript natively.


Running CommonJS with Deno v1​

See all options for Deno here.

All files as CommonJS​

deno run npm:poku --denoCjs

A specific extension as CommonJS​

deno run npm:poku --denoCjs='.cjs'

Multiple extensions as CommonJS​

deno run npm:poku --denoCjs='.cjs,.js'

Recommendations​

tip

It's usually beneficial to have an exclusive CI for each platform, especially to ensure better control in error cases.


note

If you find any typos, feel free to open a Pull Request correcting them.