Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@gigster/module-react-jest

Package Overview
Dependencies
Maintainers
14
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gigster/module-react-jest

Role | Name | Email | Slack ---- | ---- | ----- | ----- *Product Owner* | Frances Haugen | [frances@gigster.com](mailto:frances@gigster.com) | [@frances] *Maintainer* | Mark Miyashita | [mark.miyashita@gigster.com](mailto:mark.miyashita@gigster.com) | [@m

  • 2.0.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
14
increased by600%
Maintainers
14
Weekly downloads
 
Created
Source

react-jest

RoleNameEmailSlack
Product OwnerFrances Haugenfrances@gigster.com[@frances]
MaintainerMark Miyashitamark.miyashita@gigster.com[@mark]

Overview

Adds the Jest testing framework to a React or React Native app. This includes:

  • Dependencies
  • A default jest.config.js that works for both React and React Native
  • [Optional] Basic tests to make sure the app is functional as well as included snapshot tests

Usage

Specification

NameStatusDescription
generateTeststrue/falseSet to true if you would like generated tests to be created for you for the app.

Dependencies

This module works with the create-react-app block located here.

Examples

There's one example for this package:

  1. with-tests - This example is generated with generateTests: true so it has the infrastructure as well as generated tests.

Troubleshooting

Testing

Module tests are defined using a test/scenarios.yaml file. This file defines the set of example gigs that we generate as part of integration testing. To run all tests, run yarn test at the root of this module.

Each scenario is generated in test/scenario/<name> which you can then cd into and run the actual app. For a scenario called with-tests, this is done via:

cd test/scenario/with-tests
yarn install

# Run tests.
yarn test

# Start the app.
yarn start

FAQs

Package last updated on 26 Apr 2018

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc