DavidTimms / DavidTimms/zod-fast-check
Support ZodDate min and max
Open
- Dominant language
- TypeScript
- Stars
- 130
- Forks
- 16
- PR merge metrics
- No merged PRs in 30d
Description
For ZodDate, it would be nice to pass on the min/max to the `fc.date()` call.
### Example
```ts
z.date().min(new Date('2020-01-01')).max(new Date())
```
would result in an arbitrary equivalent to
```ts
fc.date({ min: new Date('2020-01-01'), max: new Date() })
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Locate the ZodDate-to-fast-check conversion and any existing date-arbitrary tests. Check how z.date() min and max constraints are represented, then verify that both constraints are forwarded to the generated fc.date() arbitrary and that the relevant tests pass.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- testing
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100