jest -t will create page for all skipped session
See original GitHub issueDescribe 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:
- Created 2 years ago
- Comments:12 (5 by maintainers)
Top 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 >
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 Free
Top 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
I somehow missed your message, looks works fancy! But anyway I will also update it and check it!
Thanks a lot
@mmarkelov , I think that did it! Thanks man! And it keeps extra browsers from popping up too.