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'm trying to update Puppeteer, jest-puppeteer and expect-puppeteer to their latest versions and I'm encountering this issue:
FAIL test/browser.js
β Test suite failed to run
TypeError: Cannot convert undefined or null to object
at Function.keys (<anonymous>)
at Object.<anonymous> (node_modules/expect-puppeteer/dist/index.js:505:8)
# Check out https://github.com/fregante/webext-dynamic-content-scripts/pull/63/commits/b428a7823f6317b5f508304f5893e061514967e2
npm install -D jest-puppeteer@latest expect-puppeteer@latest
npm run jest
The same also happens when upgrading to puppeteer 21 without updating those two dependencies.
Expected behavior
The tests should pass (or at least not throw in expect-puppeteer)
Run npx envinfo --system --binaries --npmPackages expect-puppeteer,jest-dev-server,jest-environment-puppeteer,jest-puppeteer,spawnd --markdown --clipboard
The text was updated successfully, but these errors were encountered:
fregante
changed the title
Cannot convert undefined or null to object
Regression: injectGlobals:false no longer supported ("Cannot convert undefined or null to object")
Sep 14, 2023
π Bug Report
I'm trying to update Puppeteer, jest-puppeteer and expect-puppeteer to their latest versions and I'm encountering this issue:
The issue appears to happen here:
jest-puppeteer/packages/expect-puppeteer/src/index.ts
Line 168 in ae81ca4
because
jestExpect
isundefined
To Reproduce
The same also happens when upgrading to puppeteer 21 without updating those two dependencies.
Expected behavior
The tests should pass (or at least not throw in
expect-puppeteer
)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: