Skip to content

twilio/async-test-tools.ts

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Async test tools

Sometimes for testing asynchronous code it's needed to run an event loop, to make promise.then method run, etc. With this library test with timeouts and async code would look like follows

it('Does what we want', () => {
  return Async.sequence([
    () => { // make a first step here },
    () => { // make a second step here },
  ],
  () => {
    // All final checks, asserts and expects here
  });
});


About

Helpers for testing async code

Topics

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%