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

Conversation

mmarkelov
Copy link
Member

close #531

@mmarkelov mmarkelov requested a review from mxschmitt as a code owner January 19, 2021 13:15
Copy link
Collaborator

@mxschmitt mxschmitt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if this is a good idea tho. Since it's common to "shard" the tests by browser type with e.g. GitHub Actions and pass then the browser type or device type as an environment variable to the actual process. Probably it can be still be used when using the process.env variables in the jest-playwright.config.js or what do you think?

@mmarkelov
Copy link
Member Author

@mxschmitt I'm not sure that I understood you. Do you think that we should keep this logic?
I just can't check this issue #531, we can keep this logic but rename this to JEST_PLAYWRIGHT_BROWSER for example.
I just thought that this logic was useful.

@mxschmitt
Copy link
Collaborator

@mxschmitt I'm not sure that I understood you. Do you think that we should keep this logic?
I just can't check this issue #531, we can keep this logic but rename this to JEST_PLAYWRIGHT_BROWSER for example.
I just thought that this logic was useful.

I think it's fine to remove it but we should add to the readme how the users can control the browser with their environment variable. Something like that should work then in my mind:

module.exports = {
  browsers: [process.env.BROWSER],
}

@coveralls
Copy link

coveralls commented Jan 21, 2021

Pull Request Test Coverage Report for Build 501819593

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.2%) to 95.906%

Totals Coverage Status
Change from base Build 493937069: -0.2%
Covered Lines: 105
Relevant Lines: 107

💛 - Coveralls

@mmarkelov mmarkelov merged commit c292d75 into master Jan 21, 2021
@mmarkelov mmarkelov deleted the Deprecate-setting-browser-and-device-with-env branch January 21, 2021 18:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Setting BROWSER might break jest-playwright

3 participants