Comparing version 2.1.0 to 2.2.0
@@ -22,11 +22,11 @@ #! /usr/bin/env node | ||
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r; | ||
const configFile = (0, get_arg_js_1.getArg)('config'); | ||
const configFile = (0, get_arg_js_1.getArg)('config') || (0, get_arg_js_1.getArg)('c', '-'); | ||
const defaultConfigs = await (0, options_js_1.getConfigs)(configFile); | ||
const dirs = (() => { | ||
var _a; | ||
const includeArg = (0, get_arg_js_1.getArg)('include'); | ||
const includeArg = (0, get_arg_js_1.getArg)('include'); // deprecated | ||
if (includeArg !== undefined) { | ||
return includeArg.split(','); | ||
} | ||
return ((_a = (0, get_arg_js_1.getPaths)()) !== null && _a !== void 0 ? _a : ((defaultConfigs === null || defaultConfigs === void 0 ? void 0 : defaultConfigs.include) | ||
return ((_a = (0, get_arg_js_1.getPaths)('-')) !== null && _a !== void 0 ? _a : ((defaultConfigs === null || defaultConfigs === void 0 ? void 0 : defaultConfigs.include) | ||
? Array.prototype.concat(defaultConfigs === null || defaultConfigs === void 0 ? void 0 : defaultConfigs.include) | ||
@@ -46,7 +46,7 @@ : ['.'])); | ||
((_h = defaultConfigs === null || defaultConfigs === void 0 ? void 0 : defaultConfigs.deno) === null || _h === void 0 ? void 0 : _h.cjs); | ||
const parallel = (0, get_arg_js_1.hasArg)('parallel') || (defaultConfigs === null || defaultConfigs === void 0 ? void 0 : defaultConfigs.parallel); | ||
const quiet = (0, get_arg_js_1.hasArg)('quiet') || (defaultConfigs === null || defaultConfigs === void 0 ? void 0 : defaultConfigs.quiet); | ||
const debug = (0, get_arg_js_1.hasArg)('debug') || (defaultConfigs === null || defaultConfigs === void 0 ? void 0 : defaultConfigs.debug); | ||
const parallel = (0, get_arg_js_1.hasArg)('parallel') || (0, get_arg_js_1.hasArg)('p', '-') || (defaultConfigs === null || defaultConfigs === void 0 ? void 0 : defaultConfigs.parallel); | ||
const quiet = (0, get_arg_js_1.hasArg)('quiet') || (0, get_arg_js_1.hasArg)('q', '-') || (defaultConfigs === null || defaultConfigs === void 0 ? void 0 : defaultConfigs.quiet); | ||
const debug = (0, get_arg_js_1.hasArg)('debug') || (0, get_arg_js_1.hasArg)('d', '-') || (defaultConfigs === null || defaultConfigs === void 0 ? void 0 : defaultConfigs.debug); | ||
const failFast = (0, get_arg_js_1.hasArg)('fail-fast') || (defaultConfigs === null || defaultConfigs === void 0 ? void 0 : defaultConfigs.failFast); | ||
const watchMode = (0, get_arg_js_1.hasArg)('watch'); | ||
const watchMode = (0, get_arg_js_1.hasArg)('watch') || (0, get_arg_js_1.hasArg)('w', '-'); | ||
const hasEnvFile = (0, get_arg_js_1.hasArg)('env-file'); | ||
@@ -87,5 +87,11 @@ const concurrency = (() => { | ||
? platform | ||
: (0, get_runtime_js_1.platformIsValid)(defaultConfigs === null || defaultConfigs === void 0 ? void 0 : defaultConfigs.platform) | ||
? defaultConfigs === null || defaultConfigs === void 0 ? void 0 : defaultConfigs.platform | ||
: undefined, | ||
: (0, get_arg_js_1.hasArg)('node') | ||
? 'node' | ||
: (0, get_arg_js_1.hasArg)('bun') | ||
? 'bun' | ||
: (0, get_arg_js_1.hasArg)('deno') | ||
? 'deno' | ||
: (0, get_runtime_js_1.platformIsValid)(defaultConfigs === null || defaultConfigs === void 0 ? void 0 : defaultConfigs.platform) | ||
? defaultConfigs === null || defaultConfigs === void 0 ? void 0 : defaultConfigs.platform | ||
: undefined, | ||
filter: typeof filter === 'string' ? new RegExp((0, list_files_js_1.escapeRegExp)(filter)) : filter, | ||
@@ -92,0 +98,0 @@ exclude: typeof exclude === 'string' ? new RegExp((0, list_files_js_1.escapeRegExp)(exclude)) : exclude, |
export declare function it(message: string, cb: () => Promise<unknown>): Promise<void>; | ||
export declare function it(message: string, cb: () => unknown): Promise<void>; | ||
export declare function it(message: string, cb: () => unknown): void; | ||
export declare function it(cb: () => Promise<unknown>): Promise<void>; | ||
export declare function it(cb: () => unknown): void; |
export declare function test(message: string, cb: () => Promise<unknown>): Promise<void>; | ||
export declare function test(message: string, cb: () => unknown): Promise<void>; | ||
export declare function test(message: string, cb: () => unknown): void; | ||
export declare function test(cb: () => Promise<unknown>): Promise<void>; | ||
export declare function test(cb: () => unknown): void; |
{ | ||
"name": "poku", | ||
"version": "2.1.0", | ||
"version": "2.2.0", | ||
"description": "π· Poku makes testing easy for Node.js, Bun, Deno, and you at the same time.", | ||
@@ -36,8 +36,8 @@ "main": "./lib/modules/index.js", | ||
"test:deno": "npm run test:deno:parallel && npm run test:deno:sequential", | ||
"test:sequential": "tsx src/bin/index.ts --include=test/unit,test/integration,test/e2e", | ||
"test:parallel": "tsx src/bin/index.ts --parallel --include=test/unit,test/integration,test/e2e", | ||
"test:bun:sequential": "bun src/bin/index.ts --platform=bun --include=test/unit,test/integration,test/e2e", | ||
"test:bun:parallel": "bun src/bin/index.ts --platform=bun --parallel --include=test/unit,test/integration,test/e2e", | ||
"test:deno:sequential": "tsx src/bin/index.ts --platform=deno --deno-allow=all --deno-cjs --include=ci/test/unit,ci/test/integration,ci/test/e2e", | ||
"test:deno:parallel": "tsx src/bin/index.ts --platform=deno --deno-allow=all --deno-cjs --parallel --include=ci/test/unit,ci/test/integration,ci/test/e2e", | ||
"test:sequential": "tsx src/bin/index.ts test/unit test/integration test/e2e", | ||
"test:parallel": "tsx src/bin/index.ts -p test/unit test/integration test/e2e", | ||
"test:bun:sequential": "bun src/bin/index.ts --bun test/unit test/integration test/e2e", | ||
"test:bun:parallel": "bun src/bin/index.ts --bun -p test/unit test/integration test/e2e", | ||
"test:deno:sequential": "tsx src/bin/index.ts --deno --deno-allow=all --deno-cjs ci/test/unit ci/test/integration ci/test/e2e", | ||
"test:deno:parallel": "tsx src/bin/index.ts --deno --deno-allow=all --deno-cjs -p ci/test/unit ci/test/integration ci/test/e2e", | ||
"test:c8": "c8 tsx test/c8.test.ts", | ||
@@ -50,3 +50,3 @@ "test:ci": "tsx test/ci.test.ts", | ||
"docker:deno": "docker compose -f test/docker/playground/deno/docker-compose.yml up --build", | ||
"clear": "rm -rf lib ci coverage", | ||
"clear": "rm -rf lib ci coverage .temp test-src test-tests", | ||
"prebuild": "npm run clear", | ||
@@ -65,3 +65,3 @@ "build": "tsc && tsc -p tsconfig.test.json", | ||
"@biomejs/biome": "1.8.3", | ||
"@types/node": "^20.14.10", | ||
"@types/node": "^20.14.11", | ||
"c8": "^10.1.2", | ||
@@ -68,0 +68,0 @@ "packages-update": "^2.0.0", |
@@ -31,4 +31,4 @@ <div align="center"> | ||
<img width="16" height="16" alt="check" src="https://raw.githubusercontent.com/wellwelwel/poku/main/.github/assets/readme/check.svg"> Auto detect **ESM**, **CJS**, and **TypeScript** files<br /> | ||
<img width="16" height="16" alt="check" src="https://raw.githubusercontent.com/wellwelwel/poku/main/.github/assets/readme/check.svg"> Run the same test suite for [**Node.js**][node-version-url], [**Bun**][bun-version-url], and [**Deno**][deno-version-url]<br /> | ||
<img width="16" height="16" alt="check" src="https://raw.githubusercontent.com/wellwelwel/poku/main/.github/assets/readme/check.svg"> Easily handle **servers**, **processes**, **ports**, and **containers**<br /> | ||
<img width="16" height="16" alt="check" src="https://raw.githubusercontent.com/wellwelwel/poku/main/.github/assets/readme/check.svg"> Run the **same test suite** for [**Node.js**][node-version-url], [**Bun**][bun-version-url], and [**Deno**][deno-version-url]<br /> | ||
<img width="16" height="16" alt="check" src="https://raw.githubusercontent.com/wellwelwel/poku/main/.github/assets/readme/check.svg"> Easily handle **servers**, **processes**, **ports**, and **containers** β¨ | ||
@@ -225,2 +225,3 @@ --- | ||
- [Migrating from version **1.x** to version **2.x**](https://github.com/wellwelwel/poku/issues/533). | ||
- [Using **Poku** with **Deno** and approaches to **JSR**](https://github.com/wellwelwel/poku/discussions/565). | ||
@@ -227,0 +228,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
161898
3492
284