File tree 2 files changed +16
-1
lines changed
2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change 90
90
devShell = pkgs . mkShell {
91
91
buildInputs = devShellPackages ;
92
92
shellHook = ''
93
- echo "Welcome to the development environment!"
93
+ echo "Welcome to the nix shell development environment!"
94
94
export PLAYWRIGHT_BROWSERS_PATH=${ pkgs . playwright-driver . browsers }
95
95
export PLAYWRIGHT_SKIP_VALIDATE_HOST_REQUIREMENTS=true
96
96
'' ;
Original file line number Diff line number Diff line change @@ -20,3 +20,18 @@ pnpm playwright:test
20
20
# Run a specific test (`-g` stands for grep. It accepts regex).
21
21
pnpm playwright:test -g ' <your test here>'
22
22
```
23
+
24
+
25
+ # Using nix
26
+
27
+ If this breaks, it is likely because the flake chromium version and playwright
28
+ are no longer compatible. To fix this, update the flake to get the latest
29
+ chromium version, and adjust the playwright version in the package.json.
30
+
31
+ ``` shell
32
+ # Optionally add '--command zsh' to choose your shell.
33
+ nix develop
34
+ cd site
35
+ pnpm build
36
+ pnpm playwright:test
37
+ ```
You can’t perform that action at this time.
0 commit comments