Skip to content

Running npm run setup -s fails #464

Closed
@ely-alamillo

Description

@ely-alamillo
  • react-testing-library version: 9.1.3
  • react version:
  • node version: 12.6.0
  • npm (or yarn) version: npm 6.9.0

What you did:

Tried to set up project following the CONTRIBUTING.md file.

What happened:

Setup failed with npm run setup -s fails with Tests should not contain if statements jest/no-if for the file react-testing-library/src/__tests__/rerender.js

Reproduction:

Run through setup instructions found in CONTRIBUTING.md.

Problem description:

Running npm run setup -s fails with Tests should not contain if statements jest/no-if for the file react-testing-library/src/__tests__/rerender.js

Suggested solution:

  1. Fix the test so it doesn't use if statements.
  2. Suppress the rule for this test case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions