Skip to content
This repository was archived by the owner on Sep 11, 2025. It is now read-only.
This repository was archived by the owner on Sep 11, 2025. It is now read-only.

jest -t will create page for all skipped session #698

@xuanzhaopeng

Description

@xuanzhaopeng

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions