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
Encountering an error with this module's config after upgrading Jest. I suspect that this could be fixed by explicitly requive.resolveing the path of expect-puppeteer from within the preset. In my case, expect-puppeteer is not used elsewhere and thus doesn't exist in my root node_modules folder which I suspect is the issue. This was potentially caused by the Jest 25 bug fix to start honoring setupFilesAfterEnv values from presets (jestjs/jest#7724).
To Reproduce
Steps to reproduce the behavior:
Upgrade to Jest v25.1.0.
Run existing tests with preset: 'jest-puppeteer' in config.
This seems to only happen when npm installs expect-puppeteer inside of a nested node_modules directory inside of jest-puppeteer – I'm not sure under what circumstances that happens. An easy workaround is adding an explicit dependency on expect-puppeteer.
🐛 Bug Report
Encountering an error with this module's config after upgrading Jest. I suspect that this could be fixed by explicitly
requive.resolve
ing the path ofexpect-puppeteer
from within the preset. In my case,expect-puppeteer
is not used elsewhere and thus doesn't exist in my root node_modules folder which I suspect is the issue. This was potentially caused by the Jest 25 bug fix to start honoringsetupFilesAfterEnv
values from presets (jestjs/jest#7724).To Reproduce
Steps to reproduce the behavior:
preset: 'jest-puppeteer'
in config.Expected behavior
Tests should run as expected.
Link to repl or repo (highly encouraged)
I can create one if desired.
Run
npx envinfo --system --binaries --npmPackages expect-puppeteer,jest-dev-server,jest-environment-puppeteer,jest-puppeteer,spawnd --markdown --clipboard
Paste the results here:
The text was updated successfully, but these errors were encountered: