jestPuppeteer.debug support in Jest-circus
See original GitHub issue💬 Questions and Help
I wonder if there any plans to support jest-circus. While jest-circus
works kinda fine out of the box, I noticed that jestPuppeteer.debug()
does not really work as expected.
I have this CustomEnvironemnt
class that should stop the execution on test failure:
const PuppeteerEnvironment = require( 'jest-environment-puppeteer' );
class CustomEnvironemnt extends PuppeteerEnvironment {
async handleTestEvent( event ) {
if ( event.name === 'test_fn_failure' ) {
await this.global.jestPuppeteer.debug();
}
}
}
It does trigger the chrome’s debugger, but unfortunately, after resuming the debugger - browser just closes itself.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Developers - jestPuppeteer.debug support in Jest-circus -
I wonder if there any plans to support jest-circus. While jest-circus works kinda fine out of the box, I noticed that jestPuppeteer.debug() does...
Read more >Any way to make a retries for flaky tests using jest-puppeteer?
Have you tried installing jest-circus? With this test runner you could do next: //my_perfect_test.js jest.retryTimes(3) //set maximum ...
Read more >JavaScript packages index - popularity: small - Page 88 - Snyk
... jdeploy · jdeploy-installer · jdescottes-jest-puppeteer-preset · jdesign-alert ... jest-editor-support · jest-electron · jest-environment-node-debug ...
Read more >How to show latest package version in NPM - MailSlurp
... by @types/debug 4.1.6 4.1.7 4.1.7 node_modules/@types/debug mailslurp-app ... mailslurp-app jest-circus 26.6.3 26.6.3 27.0.6 node_modules/jest-circus ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Have you tried adding freaky timeout as test argument?(I’m not using custom environment, just add jestPuppeteer.debug() to each test while test development) It is the only way I can use debug Just like this:
This question is asked all over the place. The timeout https://github.com/smooth-code/jest-puppeteer/blob/master/packages/jest-environment-puppeteer/src/PuppeteerEnvironment.js#L42 is maybe ignored due to the same reason as https://github.com/facebook/jest/issues/9359. You can use
--testtimeoutnumber
to test: https://jestjs.io/docs/en/cli#--testtimeoutnumber