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

Where to put setup file for CRA #1336

Closed
lindgr3n opened this issue Nov 8, 2017 · 2 comments
Closed

Where to put setup file for CRA #1336

lindgr3n opened this issue Nov 8, 2017 · 2 comments

Comments

@lindgr3n
Copy link

lindgr3n commented Nov 8, 2017

Would you accept a PR for updating the Install documentation with a note where to create the setup file when using Create React App? Or maybe something to be added in Common Issues?

Maybe its not a big problem but i needed some searching before i found issue #1265 and @FezVrasta
comment that helped me in the right direction!

Create a file src/setupTests.js and put setup content inside it.

@likethemammal
Copy link
Contributor

Mentioned it in this PR: #1396

@FezVrasta
Copy link
Contributor

The thing is that with CRA this config is automatic, so people just have to create the setupTests.js, without any ejection or custom config.

@ljharb ljharb closed this as completed Jul 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants