E2E test fails in Docker locally due to missing "libelf.so.1"
See original GitHub issueIs this a bug report?
Yes.
Can you also reproduce the problem with npm 4.x?
I can reproduce in v3.10.3 and v4.6.1.
Which terms did you search for in User Guide?
“e2e”, “docker”, “libelf”
Environment
node -v
: v6.3.1npm -v
: 4.6.1create-react-app
version: commit7796c94
Then, specify:
- Operating system: Mac OS X v10.12.5
- Docker version: 17.06.0-ce-mac18
Steps to Reproduce
- Clone
create-react-app
from master - Run
npm install
- Run
npm e2e:docker
Expected Behavior
The end-to-end test script should run in Docker and pass.
Actual Behavior
After running for a while, the test script exits with this error message:
> react-error-overlay@1.0.8 test /home/node/create-react-app/packages/react-error-overlay
> flow && jest
/home/node/create-react-app/packages/react-error-overlay/node_modules/flow-bin/flow-linux64-v0.46.0/flow: error while loading shared libraries: libelf.so.1: cannot open shared object file: No such file or directory
npm info lifecycle react-error-overlay@1.0.8~test: Failed to exec test script
npm ERR! Test failed. See above for more details.
++ set +x
e2e-simple.sh: ERROR! An error was encountered executing line 132.
Cleaning up.
Exiting with error.
✘ Job failes
✨ Done in 119.36s.
Issue Analytics
- State:
- Created 6 years ago
- Comments:11 (11 by maintainers)
Top Results From Across the Web
Run your tests
There are unit tests, integration tests and end-to-end testing. In this guide we take a look at running your unit tests in Docker....
Read more >How To Run End-to-End Tests Using Playwright and Docker
In this tutorial, you will set up an environment to use Playwright with Typescript for end-to-end testing, write and execute the tests, ...
Read more >Docker/Cypress Container Failing Due to Qemu Error on ...
I assume that the image pulled from the Cypress Docker repository dictates the architecture used as opposed to my --platform flag? If so,...
Read more >Run Cypress with a single Docker command
1 image. Let's run our tests using Firefox browser for example: $ docker run -it -v $PWD:/e2e -w /e2e cypress/included ...
Read more >How to troubleshoot Docker problems
docker login docker.art.local · 401 · HTTP code should be expected if Artifactory does not allow anonymous access to the repository in question....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This issue is tracked in https://github.com/nodejs/docker-node/pull/363, I believe upgrading flow to 0.48.0 in
react-error-overlay
will fix this. It’s still uses 0.46.0I can confirm this fix works! Thank you 🎉