An open API service indexing awesome lists of open source software.

https://github.com/jvanbruegge/cyclejs-test-helpers

A small collection of useful utilities
https://github.com/jvanbruegge/cyclejs-test-helpers

cyclejs helpers property-based-testing testing

Last synced: 8 months ago
JSON representation

A small collection of useful utilities

Awesome Lists containing this project

README

          

# cyclejs-test-helpers
A small collection of useful utilities

## Content

### diagramArbitrary

A [jsverify](https://github.com/jsverify/jsverify) Arbitrary, that can be used to generate random stream diagrams. Use [@cycle/time](https://github.com/cyclejs/time) to get Streams.

Usage:
```typescript
const property = forall(diagramArbitrary, diagram => {
const Time = mockTimeSource();
const click$ = Time.diagram(diagram);

//... Rest of the test
});
```