Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recipe example for Playwright #219

Open
rydkvist opened this issue Apr 16, 2024 · 0 comments
Open

Recipe example for Playwright #219

rydkvist opened this issue Apr 16, 2024 · 0 comments

Comments

@rydkvist
Copy link

Hi there!

Is there a possibility to use the env config inside a playwright.config.js?

import { env } from '~/env'

export default defineConfig({
  ...
  forbidOnly: !!env.CI,
  ...
  retries: env.CI ? 2 : 0,
  ...
  workers: env.CI ? 1 : undefined,
  ....
)}

If it is, could you create a recipe on how to adopt this in the docs? Similar to how you've done with Storybook.

Many thanks for the efforts on this package 🙏🏼

@rydkvist rydkvist changed the title Recipe example with Playwright configuration Recipe example for Playwright Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant