- Readme updates
- Example updates
- Fixed #4
- Updated to yup ^1.0.0
- Dropped support for Node below v16
- Updated dependencies
- Removed prettier
- Removed chai
- Fixed badges
- Replace travis with github actions
- Replace mocha with zUnit
- Bumped other dev deps
- Transferred repo to acuminous
- yup peer dependency to ^0.29.0
- Export TestDataSession
- Improved Readme
- TestDataFactory has been made static and the stub function removed. There is no longer any need to defer schema initialisation behind an init function, although the TestDataFactory must still be initialised before any schema that uses the example method are built.
- The TestDataFactory no longer adds the example method for you. You have to do this explicitly in your schema using
const yupByExample = require('yup-by-example'); yup.addMethod(mixed, 'example', yupByExample);
- Generators no longer need to be classes, and will not be instanciated by the factory. They just need to expose a generate method.
- Since generators are no longer instanciated, the chance instance is passed to the generate function.
- session.now has been removed. The now value is passed to generators via the now function.
- yupByExample no longer emits an 'example' event after generating a value (the other events are still emitted').
- Added some keywords
- Improved readme
- Improved test coverage
- Support yup validation and cast options
- Add debug
- Add TestDataSession.consumeProperty
- Added static api for initialising the TestDataFactory
- Fixed build issue
-
session.incrementProperty
-
Fixed example
- Readme
-
Code Climate reporting
-
Readme
mixed.example()
now takes an object as its first parameter, with optional parametersid
andgenerator
. Theid
parameter is no longer used to resolve generators.meta.sessionKey
is no longer used. Instead the example id forms the sessionKey.
- TestDataSession events
- Literal Generators
- Made rel-date parameters optional
- Removed unused dev dependency
- Replaced Jest (slow) with Mocha (fast)
- Everything!