Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e69e777

Browse files
committed
chore: nix shell to support playwright e2e tests
nix is running an older version of chromium, so had to reduce the playwright version.
1 parent 0a8c8ce commit e69e777

File tree

4 files changed

+26
-18
lines changed

4 files changed

+26
-18
lines changed

flake.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
pango
5959
pixman
6060
pkg-config
61+
playwright-driver.browsers
6162
postgresql_13
6263
protobuf
6364
protoc-gen-go
@@ -86,7 +87,14 @@
8687
in
8788
{
8889
defaultPackage = formatter; # or replace it with your desired default package.
89-
devShell = pkgs.mkShell { buildInputs = devShellPackages; };
90+
devShell = pkgs.mkShell {
91+
buildInputs = devShellPackages;
92+
shellHook = ''
93+
echo "Welcome to the development environment!"
94+
export PLAYWRIGHT_BROWSERS_PATH=${pkgs.playwright-driver.browsers}
95+
export PLAYWRIGHT_SKIP_VALIDATE_HOST_REQUIREMENTS=true
96+
'';
97+
};
9098
packages.all = allPackages;
9199
}
92100
);

site/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
},
9696
"devDependencies": {
9797
"@octokit/types": "12.3.0",
98-
"@playwright/test": "1.42.1",
98+
"@playwright/test": "1.40.1",
9999
"@storybook/addon-actions": "8.0.5",
100100
"@storybook/addon-essentials": "8.0.5",
101101
"@storybook/addon-interactions": "8.0.5",

site/pnpm-lock.yaml

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)