Skip to content

global.ts config can't be specified from testEnvironmentOptions, as described in docs #624

Open
@Rendez

Description

@Rendez

I haven't tried this repo yet, but I was scanning thru the code.

As of now, only config.serverOptions is used inside global.ts, but the config is read from a jest-playwright config (either default file path or specified via ENV variable). In the docs says you can alternatively specify testEnvironmentOptions['jest-playwright'], which I think it's a great idea (one that jest-puppeteer lacks). This however isn't correct for the case I just mentioned.

Is my assumption correct? https://github.com/playwright-community/jest-playwright/blob/master/src/global.ts#L38

Metadata

Metadata

Assignees

No one assigned

    Labels

    jestIssue related to Jest

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions