Skip to content
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

travis test suites started failing: TypeError: this.global.page.addListener is not a function #354

Closed
AaronWatters opened this issue May 29, 2020 · 2 comments

Comments

@AaronWatters
Copy link

🐛 Bug Report

All of my jest-puppeteer builds on travis suddenly started failing.
I think some new version of something is breaking because if I check in package-lock.json
the builds started working again. Here is an example of what I see

from: https://travis-ci.org/github/AaronWatters/jp_proxy_widget/jobs/692688131

> [email protected] test /home/travis/build/AaronWatters/jp_proxy_widget/end_to_end_tests
> jest
globalSetup.js started Jupyter
 FAIL  tests/headless.test.js
  ● Test suite failed to run
    TypeError: this.global.page.addListener is not a function
      
      at Object.resetPage (node_modules/jest-environment-puppeteer/lib/PuppeteerEnvironment.js:105:28)
      at async Object.resetBrowser (node_modules/jest-environment-puppeteer/lib/PuppeteerEnvironment.js:143:9)
      at async PuppeteerEnvironment.setup (node_modules/jest-environment-puppeteer/lib/PuppeteerEnvironment.js:146:5)
 FAIL  tests/run_notebooks.test.js
  ● Test suite failed to run

After I add package-lock.json to the test suite build the problem disappears (I
assume because I get unbroken older versions of something):

Here is after adding: https://travis-ci.org/github/AaronWatters/jp_proxy_widget/jobs/692699778

To Reproduce

You could clonehttps://github.com/AaronWatters/hello_jest, remove package-lock.json from the repository and then
set up a travis build.

Expected behavior

The test suite should start.

Link to repl or repo (highly encouraged)

I'm seeing this problem in a relatively simple test repository now:

Failing travis build: https://travis-ci.org/github/AaronWatters/hello_jest/builds/692703999

Repository: https://github.com/AaronWatters/hello_jest

Issues without a reproduction link are likely to stall.

Run npx envinfo --system --binaries --npmPackages expect-puppeteer,jest-dev-server,jest-environment-puppeteer,jest-puppeteer,spawnd --markdown --clipboard

Paste the results here:

## System:
 - OS: macOS 10.15.5
 - CPU: (12) x64 Intel(R) Core(TM) i9-8950HK CPU @ 2.90GHz
 - Memory: 13.22 GB / 32.00 GB
 - Shell: 3.2.57 - /bin/bash
## Binaries:
 - Node: 10.13.0 - ~/anaconda3/bin/node
 - Yarn: 1.12.1 - ~/anaconda3/bin/yarn
 - npm: 6.14.4 - ~/anaconda3/bin/npm
@wheresrhys
Copy link

I'm also seeing similar behaviour in circleci and locally. Trawling through package-lock I think this is the only change zertosh/v8-compile-cache#28, so maybe related to that dependency

@UziTech
Copy link
Contributor

UziTech commented Apr 8, 2021

is this still an issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants