-
Notifications
You must be signed in to change notification settings - Fork 288
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
Yarn 2 with PNP mode cannot resolve jest-puppeteer preset correctly #319
Comments
Another problem is that As a workaround in order to fix it add following to packageExtensions:
"jest-environment-puppeteer@*":
peerDependencies:
puppeteer: "*"
dependencies:
jest-environment-node: "*" |
Any updates? More than a month has passed and no response. |
Are you sure that it have been installed properly? To install properly use:
Not
omg ๐ฎ Reference: |
I am 100% sure it's installed correctly. If you look at my comment you'll see that it's the problem of package, not installation. Package is using unlisted dependencies. |
I recently switched from From what I understand about |
Error with
|
๐ Bug Report
The problem is I have config in LIB repo and acutal tests in another APP repo, so I have to resolve preset from the LIB repo. But I can't just write
require.resolve('jest-puppeteer')
because there are no js files, only json config.I tried to put it like this:
It works but it produces next error:
Because
jest-environment-puppeteer
should be resolved fromjest-puppeteer
.I suggest to make config a regular js file instead of json and return resolved paths instead of just package identifiers.
Workaround
Manually install
jest-environment-puppeteer
andexpect-puppeteer
and put following in config:The text was updated successfully, but these errors were encountered: