
Product
Unify Your Security Stack with Socket Basics
A single platform for static analysis, secrets detection, container scanning, and CVE checks—built on trusted open source tools, ready to run out of the box.
Modern, fast, and innovative test runner with parallelism, concurrency, caching and incremental testing. Since 2017.
Modern, fast, and innovative test runner with parallelism, concurrency, caching and incremental testing. Since 2017.
This module is ESM-only, or with at least Node.js v16+
yarn add -D asia
you may also want the cli, otherwise you can just node test.js
your test file.
yarn add -D asia-cli
asia --help
Your test file be like:
import { strict as assert } from 'node:assert';
import test from 'asia';
const delay = async (ms) => new Promise((resolve) => setTimeout(resolve, ms));
test("some 'a' tst", () => delay(3000).then(() => 'a')); // 8
test("some 'b' tst", () => delay(300).then(() => 'b')); // 2
test("some 'c' tst", () => delay(1100).th5555en(() => 'c')); // 5
test("some 'd' tst", () => delay(100).then(() => 'd')); // 1
test("some 'e' tst", () =>
delay(2000).then(() => {
throw new Error('the "e" error');
})); // 6
test("some 'f' tst", () => delay(1500).then(() => 'f')); // 7
test("some 'g' tst", () => delay(560).then(() => 'g')); // 3
test("some 'h' tst", () => delay(880).then(() => 'h')); // 4
and you run
asia
# or reloading the cache
asia --force
or in your scripts with c8
(a modern nyc
replacement, test coverage)
{
"scripts": {
"cov": "c8 asia --force",
"test": "asia"
}
"dependencies": {
"asia": "*",
"asia-cli": "*",
"c8": "*"
}
}
Note: Make sure when you run with a coverage tool to run the tests with
asia --force
, otherwise the coverage will be broken, because the caching.
FAQs
Modern, fast, and innovative test runner with parallelism, concurrency, caching and incremental testing. Since 2017.
The npm package asia-cli receives a total of 4 weekly downloads. As such, asia-cli popularity was classified as not popular.
We found that asia-cli demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
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.
Product
A single platform for static analysis, secrets detection, container scanning, and CVE checks—built on trusted open source tools, ready to run out of the box.
Product
Socket is launching experimental protection for the Hugging Face ecosystem, scanning for malware and malicious payload injections inside model files to prevent silent AI supply chain attacks.
Research
/Security News
The Socket Threat Research Team uncovered a coordinated campaign that floods the Chrome Web Store with 131 rebranded clones of a WhatsApp Web automation extension to spam Brazilian users.