Registry / testing / asynct

asynct

JSON →
library1.1.0jsnpmunverified

Asynct is a minimal async test runner for Node.js, version 1.1.0. It was designed for simplicity, allowing tests to be run in series or parallel with a simple callback-based API. However, it is no longer maintained and lacks features like assertion libraries, test filtering, or reporters. Alternative modern test frameworks like Mocha, Ava, or Jest are recommended for most use cases.

npm install asynct
INSTALL
IMPORT
SIG · ASYNCT
A
asynct
testingjavascriptv1.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

asynct
const asynct = require('asynct');
import asynct from 'asynct';
This package is CJS-only, no ESM support.
run
const { run } = require('asynct');
import { run } from 'asynct';
run is a named export in CJS.
test
const { test } = require('asynct');
import test from 'asynct';
test is a named export, not default.

Shows basic test definition and execution using asynct's test and run functions.

const { test, run } = require('asynct'); test('my test', function (done) { console.log('running'); done(); }); run();
Debug
Known issues
deprecatedThis package is no longer maintained and has known issues. Consider migrating to a modern test framework.
fix
Use Mocha, Ava, or Jest instead.
affects: >=1.0.0
gotchaNo built-in assertion library. You must throw or pass an error to done.
fix
Use a separate assertion library like assert or chai.
affects: >=1.0.0
gotchaTests do not run in a specific order unless using series mode. Parallelism may cause race conditions.
fix
Use run({ series: true }) for sequential execution.
affects: >=1.0.0
Errors
Common errors & fixes
TypeError: asynct is not a function
Attempting to call require('asynct') as a function, but asynct exports an object.
fix
Use const asynct = require('asynct'); then asynct.test(...) or destructure.
ReferenceError: run is not defined
Missing require of asynct or forgetting to call run() after defining tests.
fix
Add const { run } = require('asynct'); and run(); at the end.
Upgrade
Version history
1.1.0latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
24 hits · last 30 days
node
20
Amazon
1
OpenAI (training)
1
Resources
packageasynct
asynct — npm install asynct · libregistry