testability-browser-bindings

3.0.4 • Public • Published

testability-browser-bindings

Build Status

This library captures setTimeout, setImmediateand AJAX requests through XMLHttpRequest or fetch and notifies them to testability.js so that it automatically handles applicaton state for testing frameworks.

Automatic non testability state detection

It will report untestable applicaton state automcatically for the following async events:

  • Ajax requests with XmlHttpRequest
  • setTimeout/clearTimeout: only if it's time is below 5 seconds, because otherwise it's considered a timeout.
  • setImmediate/clearImmediate
  • fetch

See

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 3.0.4
    16
    • latest

Version History

Package Sidebar

Install

npm i testability-browser-bindings

Weekly Downloads

191

Version

3.0.4

License

ISC

Unpacked Size

39.6 kB

Total Files

13

Last publish

Collaborators

  • alfonso-presa