Skip to content

0.4.0

Choose a tag to compare

@alexreardon alexreardon released this 15 Jun 01:59
· 86 commits to master since this release

API changes

  • replaceRaf(roots) has become replaceRaf([roots], options). This allows you to use the replaceRaf syntax to set the startTime and frameDuration for a stub.
  • The existing api replaceRaf(roots) will continue to work but has been depreciated and will be removed in a future major release.

Other changes

  • added the ability to control the time value that is passed to requestAnimationFrame callbacks. This has added relevant options to createStub, step, flush and replaceRaf.
  • documentation and examples of the new time mocking behaviour.