Create-react app tell me to add test:'jest' but the existing package.json file has an existing test object?
up vote
0
down vote
favorite
I'm trying to make some test by using puppeteer and jest on create-react-app. I follow the instruction in this blog post:
https://blog.logrocket.com/end-to-end-testing-react-apps-with-puppeteer-and-jest-ce2f414b4fd7
In step 3, it is stated that "test": "jest"should be added to script at package.json file. However, there is an existing test object in package.json file which comes as default once you install create-react-app.
The default script object:
"scripts":
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
Do I still need to change test object or remain as it is?
Thank you.
testing
add a comment |
up vote
0
down vote
favorite
I'm trying to make some test by using puppeteer and jest on create-react-app. I follow the instruction in this blog post:
https://blog.logrocket.com/end-to-end-testing-react-apps-with-puppeteer-and-jest-ce2f414b4fd7
In step 3, it is stated that "test": "jest"should be added to script at package.json file. However, there is an existing test object in package.json file which comes as default once you install create-react-app.
The default script object:
"scripts":
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
Do I still need to change test object or remain as it is?
Thank you.
testing
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I'm trying to make some test by using puppeteer and jest on create-react-app. I follow the instruction in this blog post:
https://blog.logrocket.com/end-to-end-testing-react-apps-with-puppeteer-and-jest-ce2f414b4fd7
In step 3, it is stated that "test": "jest"should be added to script at package.json file. However, there is an existing test object in package.json file which comes as default once you install create-react-app.
The default script object:
"scripts":
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
Do I still need to change test object or remain as it is?
Thank you.
testing
I'm trying to make some test by using puppeteer and jest on create-react-app. I follow the instruction in this blog post:
https://blog.logrocket.com/end-to-end-testing-react-apps-with-puppeteer-and-jest-ce2f414b4fd7
In step 3, it is stated that "test": "jest"should be added to script at package.json file. However, there is an existing test object in package.json file which comes as default once you install create-react-app.
The default script object:
"scripts":
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
Do I still need to change test object or remain as it is?
Thank you.
testing
testing
asked Nov 10 at 11:44
BidiBidi
12
12
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53238594%2fcreate-react-app-tell-me-to-add-testjest-but-the-existing-package-json-file-h%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown