question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

jest -t will create page for all skipped session

See original GitHub issue

Describe the bug In PlaywrightEnvironment, we init this.global.page in setup function, when I do jest -t "my test name", it will init page for ever skipped files which consumes a lot of time if I have 50 files but only run 1 file.

To Reproduce Steps to reproduce the behavior:

Expected behavior Is it possible to init everything in beforeAll? I noticed we could use skipInitialization , but how could I initialise programmatically in beforeAll?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
xuanzhaopengcommented, May 26, 2021

@xuanzhaopeng could you please check next version? I hope that i found out the way to skip it

I somehow missed your message, looks works fancy! But anyway I will also update it and check it!

Thanks a lot

1reaction
andrewgremlichcommented, May 23, 2021

@mmarkelov , I think that did it! Thanks man! And it keeps extra browsers from popping up too.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Setup and Teardown - Jest
Repeating Setup​. If you have some work you need to do repeatedly for many tests, you can use beforeEach and afterEach hooks. For ......
Read more >
Skipping the test file without any error #103 - GitHub
I am running jest-codemods src/app/page-components/login/forgot-password/*.spec.ts --force but getting the result below without any ...
Read more >
How to run, ignore or skip Jest tests, suites and files
This post goes how to skip and exclude a single test, a whole Jest test suite and a whole Jest test file using...
Read more >
Jest testing: Top features and how to use them - LogRocket Blog
And the first time the test runs, Jest will store the data structure in a snapshot file that you can manually open and...
Read more >
Testing-library: avoid these mistakes in async tests
Testing is a crucial part of any large application development. The more code you write, the more tests you want to add to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found