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
11
11
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
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
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
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
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
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