Skip to content

Commit

Permalink
docs: add guide about env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalets committed Apr 3, 2024
1 parent 6b7259d commit 4de1ffa
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/guides/env-variables.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Env variables

To pass environment variables to both Playwright and Playwright-bdd,
you can use `cross-env-shell` command from [cross-env](https://github.com/kentcdodds/cross-env?tab=readme-ov-file#cross-env-vs-cross-env-shell) package:

```
npx cross-env-shell GREETING=hello "npx bddgen && npx playwright test"
```
1 change: 1 addition & 0 deletions docs/guides/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
- [Ignore generated files](guides/ignore-generated-files.md)
- [Debugging](guides/debugging.md)
- [Watch mode](guides/watch-mode.md)
- [Env variables](guides/env-variables.md)
- [Component tests](guides/component-tests.md)
- [IDE integration](guides/ide-integration.md)
- [Usage with Nx](guides/usage-with-nx.md)

0 comments on commit 4de1ffa

Please sign in to comment.