Comparing version 1.9.1 to 1.9.2
@@ -9,2 +9,8 @@ import { Runner } from './runner.js'; | ||
* | ||
* --- | ||
* | ||
* βΉοΈ `startAfter` is case sensitive. | ||
* | ||
* --- | ||
* | ||
* @default undefined | ||
@@ -11,0 +17,0 @@ */ |
@@ -59,7 +59,7 @@ import type { Configs as ListFilesConfigs } from './list-files.js'; | ||
* ```ts | ||
* beforeEach(prepare) | ||
* beforeEach(() => myFunc()) | ||
* ``` | ||
* | ||
* ```ts | ||
* beforeEach('/tools/prepare.ts') | ||
* beforeEach(async () => await myAsyncFunc()) | ||
* ``` | ||
@@ -74,7 +74,7 @@ */ | ||
* ```ts | ||
* afterEach(cleanup) | ||
* afterEach(() => myFunc()) | ||
* ``` | ||
* | ||
* ```ts | ||
* afterEach('/tools/cleanup.ts') | ||
* afterEach(async () => await myAsyncFunc()) | ||
* ``` | ||
@@ -81,0 +81,0 @@ */ |
@@ -8,3 +8,3 @@ "use strict"; | ||
cb: undefined, | ||
assert: true, | ||
assert: false, | ||
test: true, | ||
@@ -15,5 +15,5 @@ }, | ||
cb: undefined, | ||
assert: true, | ||
assert: false, | ||
test: true, | ||
}, | ||
}; |
@@ -1,4 +0,4 @@ | ||
import type { Configs } from '../@types/poku.ts'; | ||
import type { Configs } from '../@types/poku.js'; | ||
export declare const supportedPlatforms: ReadonlyArray<Configs['platform']>; | ||
export declare const platformIsValid: (platform: unknown) => platform is "node" | "bun" | "deno" | undefined; | ||
export declare const getRuntime: (configs?: Configs) => (typeof supportedPlatforms)[number]; |
@@ -29,3 +29,3 @@ "use strict"; | ||
each_js_1.each.before.assert = | ||
typeof (options === null || options === void 0 ? void 0 : options.assert) === 'boolean' ? options.assert : true; | ||
typeof (options === null || options === void 0 ? void 0 : options.assert) === 'boolean' ? options.assert : false; | ||
(options === null || options === void 0 ? void 0 : options.immediate) && callback(); | ||
@@ -72,3 +72,3 @@ each_js_1.each.before.cb = () => { | ||
each_js_1.each.after.assert = | ||
typeof (options === null || options === void 0 ? void 0 : options.assert) === 'boolean' ? options.assert : true; | ||
typeof (options === null || options === void 0 ? void 0 : options.assert) === 'boolean' ? options.assert : false; | ||
each_js_1.each.after.cb = () => { | ||
@@ -75,0 +75,0 @@ if (each_js_1.each.after.status) |
{ | ||
"name": "poku", | ||
"version": "1.9.1", | ||
"version": "1.9.2", | ||
"description": "π· Poku makes testing easy for Node.js, Bun & Deno at the same time.", | ||
@@ -9,3 +9,4 @@ "main": "./lib/index.js", | ||
"pretest:c8": "npm run build", | ||
"test:c8": "c8 --include 'src/**' --exclude 'src/@types/**' --reporter=text --reporter=lcov npx poku --parallel --debug test/unit,test/integration,test/e2e", | ||
"test:c8": "c8 --reporter=text --reporter=lcov npm run test:e2e", | ||
"test:e2e": "npx poku --parallel ci/test/unit,ci/test/integration,ci/test/e2e", | ||
"test:ci": "tsx ./test/ci.test.ts", | ||
@@ -12,0 +13,0 @@ "test:node": "FILTER='node-' npm run test:ci", |
[node-version-url]: https://github.com/nodejs/node | ||
[node-version-image]: https://img.shields.io/badge/Node.js->=6.0.0-badc58 | ||
[node-version-image]: https://img.shields.io/badge/Node.js->=%206.0.0-badc58 | ||
[bun-version-url]: https://github.com/oven-sh/bun | ||
[bun-version-image]: https://img.shields.io/badge/Bun->=0.5.3-f471b5 | ||
[bun-version-image]: https://img.shields.io/badge/Bun->=%200.5.3-f471b5 | ||
[deno-version-url]: https://github.com/denoland/deno | ||
[deno-version-image]: https://img.shields.io/badge/Deno->=1.30.0-70ffaf | ||
[deno-version-image]: https://img.shields.io/badge/Deno->=%201.30.0-70ffaf | ||
[typescript-url]: https://github.com/microsoft/TypeScript | ||
[typescript-version-image]: https://img.shields.io/badge/TypeScript->=5.0.2-3077c6 | ||
[typescript-version-image]: https://img.shields.io/badge/TypeScript->=%204.7.2-3077c6 | ||
[ci-url]: https://github.com/wellwelwel/poku/actions/workflows/ci.yml?query=branch%3Amain | ||
@@ -18,14 +18,13 @@ [ci-image]: https://img.shields.io/github/actions/workflow/status/wellwelwel/poku/ci.yml?event=push&style=flat&label=CI&branch=main | ||
<div align="center"> | ||
<img width="170" height="170" alt="Logo" src="https://raw.githubusercontent.com/wellwelwel/poku/main/.github/assets/readme/poku.svg"> | ||
# Poku | ||
<img align="right" width="128" height="128" alt="Logo" src="https://raw.githubusercontent.com/wellwelwel/poku/main/.github/assets/readme/poku.svg"> | ||
**Poku** can show you _how simple testing can be_ π± | ||
[**English**](https://poku.io/docs) | [**PortuguΓͺs (BR)**](https://poku.io/pt-BR/docs) | ||
**Poku** is your Test Runner Pet for [**Node.js**][node-version-url], [**Bun**][bun-version-url] and [**Deno**][deno-version-url]. | ||
[![Node.js Version][node-version-image]][node-version-url] | ||
[![Bun Version][bun-version-image]][bun-version-url] | ||
[![Deno Version][deno-version-image]][deno-version-url] | ||
[![TypeScript Version][typescript-version-image]][typescript-url] | ||
[![TypeScript Version][typescript-version-image]][typescript-url]<br /> | ||
[![GitHub Workflow Status (with event)][ci-image]][ci-url] | ||
@@ -36,29 +35,40 @@ [![GitHub Workflow Status (with event)][ql-image]][ql-url] | ||
<!-- ![Codecov](https://img.shields.io/codecov/c/github/wellwelwel/poku?label=Coverage) --> | ||
Enjoying **Poku**? Consider giving him a star βοΈ | ||
</div> | ||
--- | ||
π· [**Documentation**](https://poku.io) β’ π§ͺ [**Examples**](https://poku.io/docs/category/examples) β’ π¬ [**Compare the Most Popular Test Runners**](https://poku.io/docs/comparing) | ||
<div align="center"> | ||
π· [**Documentation**](https://poku.io)<span> β’ </span>π§ͺ [**Examples**](https://poku.io/docs/category/examples)<span> β’ </span>π¬ [**Compare the Most Popular Test Runners**](https://poku.io/docs/comparing) | ||
</div> | ||
--- | ||
## Why Poku? | ||
## Reasons to Adopt a Poku β | ||
**Poku** can show you how simple testing can be π± | ||
<img width="16" height="16" alt="check" src="https://raw.githubusercontent.com/wellwelwel/poku/main/.github/assets/readme/check.svg"> No configurations<br /> | ||
<span> </span><img width="16" height="16" alt="check" src="https://raw.githubusercontent.com/wellwelwel/poku/main/.github/assets/readme/check.svg"> Auto detect **ESM** and **CJS**<br /> | ||
<span> </span><img width="16" height="16" alt="check" src="https://raw.githubusercontent.com/wellwelwel/poku/main/.github/assets/readme/check.svg"> Auto detect **Typescript** files<br /> | ||
<span> </span><img width="16" height="16" alt="check" src="https://raw.githubusercontent.com/wellwelwel/poku/main/.github/assets/readme/check.svg"> Don't export your **server** (_just run it_) π<br /> | ||
- No configurations | ||
- Supports **ESM** and **CJS** | ||
- High **isolation** level per file | ||
- **Poku** is [**100%** documented](https://poku.io/docs) | ||
- Zero external dependencies | ||
- **Parallel** and **Sequential** runs | ||
- Designed to be highly intuitive | ||
- Compatible with **Coverage** tools | ||
- [**Node.js**][node-version-url], [**Bun**][bun-version-url] and [**Deno**][deno-version-url] compatibility | ||
- You don't need to learn it all at once to get started π§π»βπ | ||
<img width="16" height="16" alt="check" src="https://raw.githubusercontent.com/wellwelwel/poku/main/.github/assets/readme/check.svg"> Less verbose<br /> | ||
<img width="16" height="16" alt="check" src="https://raw.githubusercontent.com/wellwelwel/poku/main/.github/assets/readme/check.svg"> High **isolation** level per file<br /> | ||
<span> </span><img width="16" height="16" alt="check" src="https://raw.githubusercontent.com/wellwelwel/poku/main/.github/assets/readme/check.svg"> No eval needed π<br /> | ||
<img width="16" height="16" alt="check" src="https://raw.githubusercontent.com/wellwelwel/poku/main/.github/assets/readme/check.svg"> **Parallel** and **Sequential** runs ππ½ππ»<br /> | ||
> _Poku adapts to your test, not the other way around._ | ||
<img width="16" height="16" alt="check" src="https://raw.githubusercontent.com/wellwelwel/poku/main/.github/assets/readme/check.svg"> **Poku** is [**100%** documented](https://poku.io/docs)<br /> | ||
<img width="16" height="16" alt="check" src="https://raw.githubusercontent.com/wellwelwel/poku/main/.github/assets/readme/check.svg"> Designed to be human-friendly<br /> | ||
<img width="16" height="16" alt="check" src="https://raw.githubusercontent.com/wellwelwel/poku/main/.github/assets/readme/check.svg"> **Poku** doesn't use a global state<br /> | ||
<img width="16" height="16" alt="check" src="https://raw.githubusercontent.com/wellwelwel/poku/main/.github/assets/readme/check.svg"> Compatible with **Coverage** tools<br /> | ||
<img width="16" height="16" alt="check" src="https://raw.githubusercontent.com/wellwelwel/poku/main/.github/assets/readme/check.svg"> [**Node.js**][node-version-url], [**Bun**][bun-version-url] and [**Deno**][deno-version-url] compatibility π©΅<br /> | ||
β¨ You are free to work with the packages you desire<br /> | ||
π§π»βπ You don't need to learn it all at once to get started <br /> | ||
π§π»βπ¬ **Poku** adapts to your test, not the other way around<br /> | ||
β Zero external dependencies (_that means **lightweight**_) <br /> | ||
π΄πΌ **Poku** doesn't restrict you from testing in legacy environments<br /> | ||
--- | ||
@@ -256,2 +266,9 @@ | ||
## Limitations | ||
- **Poku** is still a bit lonely, without an **active community** around him, but we can change it π€ | ||
- Each file generates a sub-process during its execution. This can be reflected in projects with an extremely high volume of test files when run in parallel. | ||
--- | ||
## Acknowledgements | ||
@@ -258,0 +275,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
100691
1910
291