
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
async-describe
Advanced tools
A simple way for making async tests procedures
npm install --save-dev async-describe
async-describe
is designed for running async end to end tests
const { describe, test } = require('async-describe');
const sleep = ms => new Promise(resolve => setTimeout(resolve, ms));
describe('tests', async () => {
await describe('build client', async () => {
await test('test');
});
await describe('start server', async () => {
await test('test 1', async () => {
})
await test('test 2', async () => {
console.warn('console.warn');
})
await test('test 3', sleep(1)) // test() can take a promise instead of an async function
await sleep(100);
});
await describe('additional test I')
await describe('additional test II', async () => {
await test('test3', async () => {
console.log('console.log');
})
})
await describe('run functional tests', async () => {
await sleep(100);
await test('test4', async () => {
throw new Error('1')
})
await test('test4', async () => {
throw new Error('2')
})
});
await describe('more test', async () => {
throw new Error('Fatal')
})
await describe('more test')
await describe('more test')
});
FAQs
function for running asynchronous tests
The npm package async-describe receives a total of 25 weekly downloads. As such, async-describe popularity was classified as not popular.
We found that async-describe demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.