@times-components/fixture-generator
TypeScript icon, indicating that this package has built-in type declarations

0.34.1 • Public • Published

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 and types.ts before running yarn getSchema followed by yarn 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.

Testing

Package Sidebar

Install

npm i @times-components/fixture-generator

Weekly Downloads

9

Version

0.34.1

License

BSD-3-Clause

Unpacked Size

228 kB

Total Files

66

Last publish

Collaborators

  • marcincuber
  • newsuk
  • news-tools