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

Lengthen jasmine and jest timeout for tests #684

Closed
wants to merge 13 commits into from

Conversation

jywarren
Copy link
Member

@jywarren jywarren commented Feb 2, 2021

Try to fix #683 by lengthening timeouts for tests:

module.exports = {
  launch: {
    headless: process.env.HEADLESS !== 'false',
    slowMo: process.env.SLOWMO ? process.env.SLOWMO : 0,
    devtools: true
  },
  server: {
    command: 'grunt serve',
    port:3000,
    launchTimeout: 5000000,
  },
};

Note, this code may not work because we're just directly browsing the files without a local test server, so we really need to mess with the browser timeout, see below...

@gitpod-io
Copy link

gitpod-io bot commented Feb 2, 2021

@jywarren
Copy link
Member Author

jywarren commented Feb 2, 2021

Maybe puppeteer/puppeteer#6185 --

await page.setDefaultNavigationTimeout(60000);

@jywarren jywarren changed the title Lengthen jasmine timeout for tests Lengthen jasmine and jest timeout for tests Feb 9, 2021
@jywarren
Copy link
Member Author

jywarren commented Feb 9, 2021

@jywarren
Copy link
Member Author

jywarren commented Feb 9, 2021

Trying to work from karma-runner/karma#1403 (comment)

@jywarren
Copy link
Member Author

jywarren commented Feb 9, 2021

Obviously really struggling here... i'll see if i can keep adding these to improve things???

@jywarren
Copy link
Member Author

jywarren commented Feb 9, 2021

😭

@jywarren jywarren closed this Jan 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Intermittent test failures in both Jasmine and Jest
1 participant