You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to run my repo set up with Yarn PnP through the testcafe docker image
What is the Current behavior?
When I attempt to run docker run --rm -v D:\path\to\testcafe-docker-yarn-pnp:/app -w /app -it testcafe/testcafe:2.1.0 chromium build/tests --config-file=.testcaferc.json I get the following error:
ERROR Cannot prepare tests due to the following error:
Error: Cannot find module 'node-fetch'
Require stack:
- /app/build/tests/lifecycle.test.js
- /usr/lib/node_modules/testcafe/lib/compiler/test-file/formats/es-next/compiler.js
- /usr/lib/node_modules/testcafe/lib/compiler/compilers.js
- /usr/lib/node_modules/testcafe/lib/compiler/index.js
- /usr/lib/node_modules/testcafe/lib/runner/bootstrapper.js
- /usr/lib/node_modules/testcafe/lib/runner/index.js
- /usr/lib/node_modules/testcafe/lib/testcafe.js
- /usr/lib/node_modules/testcafe/lib/index.js
- /usr/lib/node_modules/testcafe/lib/cli/cli.js
- /usr/lib/node_modules/testcafe/lib/cli/index.js
at Object.<anonymous> (/app/tests/lifecycle.test.ts:2:1)
Type "testcafe -h"for help.
What is the Expected behavior?
The tests should run without any errors around dependencies
What is your public website URL? (or attach your complete example)
FROM testcafe/testcafe
USER root
RUN npm install -g yarn && \
sed --in-place --regexp-extended "s/^node /yarn node /" /opt/testcafe/docker/testcafe-docker.sh
USER user
What is your Scenario?
I would like to run my repo set up with Yarn PnP through the testcafe docker image
What is the Current behavior?
When I attempt to run
docker run --rm -v D:\path\to\testcafe-docker-yarn-pnp:/app -w /app -it testcafe/testcafe:2.1.0 chromium build/tests --config-file=.testcaferc.json
I get the following error:What is the Expected behavior?
The tests should run without any errors around dependencies
What is your public website URL? (or attach your complete example)
https://github.com/aboe026/testcafe-docker-yarn-pnp
What is your TestCafe test code?
Your complete configuration file
Your complete test report
No response
Screenshots
No response
Steps to Reproduce
Please see https://github.com/aboe026/testcafe-docker-yarn-pnp#steps-to-reproduce
TestCafe version
2.1.0
Node.js version
v16.13.2
Command-line arguments
docker run --rm -v D:\path\to\testcafe-docker-yarn-pnp:/app -w /app -it testcafe/testcafe:2.1.0 chromium build/tests --config-file=.testcaferc.json
Browser name(s) and version(s)
chromium
Platform(s) and version(s)
Windows 11
Other
No response
The text was updated successfully, but these errors were encountered: