Socket
Socket
Sign inDemoInstall

@times-components/fixture-generator

Package Overview
Dependencies
0
Maintainers
3
Versions
112
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @times-components/fixture-generator

Creates fixture data for testing


Version published
Maintainers
3
Created

Readme

Source

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

Keywords

FAQs

Last updated on 19 Apr 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc