cyclejs-test-helpers
TypeScript icon, indicating that this package has built-in type declarations

4.0.0 • Public • Published

cyclejs-test-helpers

A small collection of useful utilities

Content

diagramArbitrary

A jsverify Arbitrary, that can be used to generate random stream diagrams. Use @cycle/time to get Streams.

Usage:

const property = forall(diagramArbitrary, diagram => {
    const Time = mockTimeSource();
    const click$ = Time.diagram(diagram);
 
    //... Rest of the test
});

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 4.0.0
    24
    • latest

Version History

Package Sidebar

Install

npm i cyclejs-test-helpers

Weekly Downloads

24

Version

4.0.0

License

MIT

Unpacked Size

118 kB

Total Files

15

Last publish

Collaborators

  • supermanitu