Skip to content
This repository has been archived by the owner on Dec 5, 2023. It is now read-only.

Fishery fixtures proof-of-concept #47

Draft
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

kasperg
Copy link
Member

@kasperg kasperg commented Jul 10, 2023

Add Fishery as an alternative static JSON files for Cypress fixtures

Fishery seems to a reasonably popular fixture factory library with
support for TypeScript. See their initial blog post for more info:
https://thoughtbot.com/blog/announcing-fishery-a-javascript-and-typescript-factory-library

Alternatives considered:

Add an initial factory for Availability

This is a reasonably simple type. It should be a nice place to start.

Use AvailabilityFactory instead of fixture in material test

This should show that the approach works in practice.

We cannot use interceptRest here as it requires a filename argument.

kasperg added 3 commits July 10, 2023 08:37
Fishery seems to a reasonably popular fixture factory library with
support for TypeScript. See their initial blog post for more info:
https://thoughtbot.com/blog/announcing-fishery-a-javascript-and-typescript-factory-library

Alternatives considered:
- https://github.com/willryan/factory.ts (less popular, no company backing)
- https://github.com/rosiejs/rosie (no TypeScript support)
This is a reasonably simple type. It should be a nice place to start.
This should show that the approach works in practice.

We cannot use interceptRest here as it requires a filename argument.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant