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 - npm Package Compare versions

Comparing version 1.3.0 to 1.3.1

8

lib/bin/index.js

@@ -14,4 +14,6 @@ #! /usr/bin/env node

const filter = (0, get_arg_js_1.getArg)('filter');
const exclude = (0, get_arg_js_1.getArg)('exclude');
const parallel = (0, get_arg_js_1.hasArg)('parallel');
const exclude = (0, get_arg_js_1.getArg)('exclude');
const quiet = (0, get_arg_js_1.hasArg)('quiet');
const logSuccess = (0, get_arg_js_1.hasArg)('log-success');
(0, index_js_1.poku)(dirs, {

@@ -22,2 +24,6 @@ platform: (0, get_runtime_js_1.platformIsValid)(platform) ? platform : undefined,

parallel,
quiet,
log: {
success: logSuccess,
},
});

2

lib/modules/poku.d.ts
import { Code } from '../@types/code.js';
import { Configs } from '../@types/poku.js';
export declare function poku(targetDirs: string | string[], configs?: Configs): Promise<void>;
export declare function poku(targetDirs: string | string[], configs: Configs & {
noExit: true;
}): Promise<Code>;
export declare function poku(targetDirs: string | string[], configs?: Configs): Promise<void>;

@@ -22,5 +22,4 @@ "use strict";

const results = yield Promise.all(dirs.map((dir) => (0, run_tests_js_1.runTestsParallel)(dir, configs)));
if (results.some((result) => !result)) {
if (results.some((result) => !result))
code = 1;
}
if (configs === null || configs === void 0 ? void 0 : configs.noExit)

@@ -27,0 +26,0 @@ return code;

{
"name": "poku",
"version": "1.3.0",
"version": "1.3.1",
"description": "🐷 Poku is a flexible and easy-to-use Test Runner for Node.js, Bun and Deno that allows you to run parallel and sequential tests, plus high isolation level per test file",

@@ -62,2 +62,3 @@ "main": "./lib/index.js",

"karma",
"urun",
"filter",

@@ -70,3 +71,4 @@ "exclude",

"fast",
"easy"
"easy",
"poku"
],

@@ -73,0 +75,0 @@ "author": "https://github.com/wellwelwel",

@@ -479,2 +479,52 @@ [node-version-url]: https://github.com/nodejs/node

#### `quiet`
Perform tests with no logs.
> This option overwrites all `log` settings by exiting with code and no logs (see bellow).
- **in-code**
```ts
poku(['...'], {
quiet: true,
});
```
- **CLI**
> _Since **1.3.1**_
```bash
npx poku --quiet ./test
```
---
#### `log`
##### `success`
By default **Poku** doesn't shows succes logs, but you can enable it:
- **in-code**
```ts
poku(['...'], {
log: {
success: true,
},
});
```
- **CLI**
> _Since **1.3.1**_
```bash
npx poku --log-success ./test
```
---
### Assert

@@ -486,6 +536,31 @@

**Poku** includes the `assert` method, keeping everything as it is, but providing human readability.
**Poku** includes the `assert` method native from [**Node.js**][node-version-url], keeping everything as it is, but providing human readability.<br/>
It supports both [**Bun**][bun-version-url] and [**Deno**][deno-version-url].
**Available methods:**
#### Migrating to **Poku**'s assert
_But only if you want to, of course._
> <img src=".github/assets/readme/node-js.svg" width="24" />
> <img src=".github/assets/readme/plus.svg" width="24" />
> <img src=".github/assets/readme/bun.svg" width="24" />
```diff
- import assert from 'node:assert';
+ import { assert } from 'poku';
assert(true);
```
> <img src=".github/assets/readme/deno.svg" width="24" />
```diff
- import assert from 'node:assert';
+ import { assert } from 'npm:poku';
assert(true);
```
#### Available methods
- `assert(value[, message])`

@@ -492,0 +567,0 @@ - `assert.deepEqual(actual, expected[, message])`

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