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
- Host: GitHub
- URL: https://github.com/jvanbruegge/cyclejs-test-helpers
- Owner: jvanbruegge
- License: mit
- Created: 2017-03-30T10:48:24.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2021-05-08T13:27:59.000Z (about 5 years ago)
- Last Synced: 2025-04-10T13:31:33.375Z (about 1 year ago)
- Topics: cyclejs, helpers, property-based-testing, testing
- Language: TypeScript
- Size: 90.8 KB
- Stars: 5
- Watchers: 1
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
});
```