FixtureGenerator
This package is meant to create a single testable location for our fixtures. Enabling us to generate fixture data using schema introspection and graphql gen that is typesafe and reliable.
The aim for this package is to give us a single location for integration tests, showcase and UI tests all to use.
Notes:
-
Since Jest depends on javascript, this package needs to be transpiled before running any Jest tests. Make sure to re-transpile after making any changes on this package.
-
If new types are added to TPA. Please delete
schema.json
andtypes.ts
before runningyarn getSchema
followed byyarn gentypes
. This is due to an issue with file permissions.types.ts
is an autogenerated file and should not be changed manually.
Contributing
Please read CONTRIBUTING.md before contributing to this package
Running the code
Please see our main README.md to get the project running locally
Development
This project is in typescript so you've got that do deal with. The reason for which is so we can enforce the types that we generate from graphql gen.
In order to build the project just run:
yarn transpile
You do not need to have typescript on your machine as we install the compiler as a dev dependency.