Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update jest.md #2499

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Update jest.md #2499

wants to merge 1 commit into from

Commits on Feb 5, 2021

  1. Update jest.md

    Add note about skipping setting 'setupFilesAfterEnv' if using create-react-app. If you try to do so when using create-react-app, you get the following error:
    
    ```
    (base) ➜  component-library git:(setup) ✗ npm run test
    
    > component-library@0.1.0 test
    > react-scripts test
    
    We detected setupFilesAfterEnv in your package.json.
    
    Remove it from Jest configuration, and put the initialization code in src/setupTests.js.
    This file will be loaded automatically.
    ```
    wyatt-troia committed Feb 5, 2021
    Configuration menu
    Copy the full SHA
    6017756 View commit details
    Browse the repository at this point in the history