This repository has been archived by the owner on Jan 26, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 492
jest option 'setupFiles' should be added to solve testing problem with react-slick? #192
Comments
I believe CRA will pull in a
|
I have the same issue |
The current setup will pick up a setup file in Just create this file and put whatever additional setup your project requires in it. The mock for |
Thanks @jakeleboeuf and @DorianGrey for your useful help, it solved that. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Is this a bug report?
yes
Can you also reproduce the problem with npm 4.x?
not relevant
Which terms did you search for in User Guide?
I read the chapter about testing: https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#running-tests
Environment
node -v
: v6.9.5npm -v
: 5.5.1yarn --version
(if you use Yarn): N/Anpm ls react-scripts-ts
(if you haven’t ejected): 2.8.0Then, specify:
Steps to Reproduce
Expected Behavior
I would expect that 'CI=true npm test' works fine and runs the test.
I would expect that the jest option 'setupFiles' is supported.
Actual Behavior
See above the error messages I got.
Reproducible Demo
Not available at the moment, sorry. I will try to create one soon.
The application just created using the README.md of this project does not reproduce this problem, because it does not use react-slick.
The text was updated successfully, but these errors were encountered: