Cypress

From NixOS Wiki
Revision as of 09:58, 3 November 2023 by imported>Pbek (Mention steam-run and cypress packages)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

You cannot use cypress directly with npm. You can either run it with steam-run or install the cypress package.

For example, put this shell.nix in the directory with your cypress tests:

{ pkgs ? import <nixpkgs> {} }:
  pkgs.mkShell {
    nativeBuildInputs = with pkgs; [
      nodejs
      cypress
    ];
}

You can then just run nix-shell --run "Cypress" to open the Cypress UI and then select your project.