The Wayback Machine - https://web.archive.org/web/20200704140246/https://github.com/smooth-code/jest-puppeteer/issues/313
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

Sample create-reac-app does'nt work #313

Open
franxois opened this issue Jan 31, 2020 · 0 comments
Open

Sample create-reac-app does'nt work #313

franxois opened this issue Jan 31, 2020 · 0 comments

Comments

@franxois
Copy link

@franxois franxois commented Jan 31, 2020

🐛 Bug Report

When I try to run create-react-app samples, it doesn't work

To Reproduce

cd /tmp
git clone git@github.com:smooth-code/jest-puppeteer.git
cd jest-puppeteer/examples/create-react-app
npm i
npm run test:integration

It outputs

Determining test suites to run...
Jest dev-server output:
npm ERR! code ELIFECYCLE
npm ERR! errno 243
npm ERR! create-react-app-sandbox@0.1.0 test:integration: `jest -c integration/jest.config.js`
npm ERR! Exit status 243
npm ERR! 
npm ERR! Failed at the create-react-app-sandbox@0.1.0 test:integration script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/francois/.npm/_logs/2020-01-31T10_20_40_560Z-debug.log
➜  create-react-app git:(master) ✗ (⎈ microk8s:default) tail ~/.npm/_logs/2020-01-31T10_20_40_560Z-debug.log 
18 verbose argv "/snap/node/2585/bin/node" "/snap/node/2585/bin/npm" "run" "test:integration"
19 verbose node v12.14.1
20 verbose npm  v6.13.4
21 error code ELIFECYCLE
22 error errno 243
23 error create-react-app-sandbox@0.1.0 test:integration: `jest -c integration/jest.config.js`
23 error Exit status 243
24 error Failed at the create-react-app-sandbox@0.1.0 test:integration script.
24 error This is probably not a problem with npm. There is likely additional logging output above.
tail ~/.npm/_logs/2020-01-31T10_20_40_560Z-debug.log                                                                                                                                                            
18 verbose argv "/snap/node/2585/bin/node" "/snap/node/2585/bin/npm" "run" "test:integration"                                                                                                                                                                           
19 verbose node v12.14.1
20 verbose npm  v6.13.4
21 error code ELIFECYCLE
22 error errno 243
23 error create-react-app-sandbox@0.1.0 test:integration: `jest -c integration/jest.config.js`
23 error Exit status 243
24 error Failed at the create-react-app-sandbox@0.1.0 test:integration script.
24 error This is probably not a problem with npm. There is likely additional logging output above.
25 verbose exit [ 243, true ]

Expected behavior

This should run react dev server and display test results

Run npx envinfo --system --binaries --npmPackages expect-puppeteer,jest-dev-server,jest-environment-puppeteer,jest-puppeteer,spawnd --markdown --clipboard

Paste the results here:

npx : 1 installé(s) en 1.074s

*** Clipboard option removed - use clipboardy or clipboard-cli directly ***


## System:
 - OS: Linux 5.3 Ubuntu 19.10 (Eoan Ermine)
 - CPU: (4) x64 Intel(R) Core(TM) i5-2320 CPU @ 3.00GHz
 - Memory: 395.65 MB / 5.79 GB
 - Container: Yes
 - Shell: 5.7.1 - /usr/bin/zsh
## npmPackages:
 - jest-puppeteer: ^4.2.0 => 4.4.0

Workaround

If I comment the server part in jest-puppeterr.config.js and start the react server manually, tests are running

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
1 participant
You can’t perform that action at this time.