# Node.js with Playwright's library and its Chromium, all from nixpkgs, for the # dashboard's browser checks (`check.js`): # # nix-shell src/api/dashboard/check.nix --run \ # 'cargo test --features most dashboard_in_a_browser -- --ignored' # # nixpkgs builds Playwright's library (`playwright-core`) as `playwright-driver`, with # browsers of its version in `playwright-driver.browsers`: so the two match, and nothing # comes from npm. { pkgs ? import { }, }: let driver = pkgs.playwright-driver; in pkgs.mkShell { packages = [ pkgs.nodejs ]; # Where Node finds `require("playwright-core")`. NODE_PATH = pkgs.linkFarm "continuum-dashboard-check-modules" [ { name = "playwright-core"; path = driver; } ]; PLAYWRIGHT_BROWSERS_PATH = driver.browsers; PLAYWRIGHT_SKIP_VALIDATE_HOST_REQUIREMENTS = "true"; }