Open jonlachlan opened 4 years ago
I'm having trouble getting Puppeteer to work and I can't track down where it's coming from. I made a repro at https://github.com/jonlachlan/meteor-mocha-puppeteer-app-test-error-repro using meteor create --minimal and I changed the test-app script to include TEST_BROWSER_DRIVER=puppeteer.
meteor create --minimal
test-app
TEST_BROWSER_DRIVER=puppeteer
I made a simple test at /client/main.app-test.js that loads the page:
const puppeteer = require('puppeteer'); describe('main', () => { it('loads without errors', async function () { const browser = await puppeteer.launch(); const page = await browser.newPage(); await page.goto('http://localhost:3000'); await browser.close(); }) })
When I run yarn test-app I get "TypeError: Cannot read property 'call' of undefined".
yarn test-app
I'm having trouble getting Puppeteer to work and I can't track down where it's coming from. I made a repro at https://github.com/jonlachlan/meteor-mocha-puppeteer-app-test-error-repro using
meteor create --minimal
and I changed thetest-app
script to includeTEST_BROWSER_DRIVER=puppeteer
.I made a simple test at /client/main.app-test.js that loads the page:
When I run
yarn test-app
I get "TypeError: Cannot read property 'call' of undefined".