depot/third_party/nixpkgs/pkgs/development/web/cypress/cypress-example-kitchensink
Default email 02cf88bb76 Project import generated by Copybara.
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
2022-08-12 15:06:08 +03:00
..
cypress-example-kitchensink.nix Project import generated by Copybara. 2022-08-12 15:06:08 +03:00
default.nix Project import generated by Copybara. 2022-07-14 08:49:19 -04:00
node-env.nix Project import generated by Copybara. 2022-08-12 15:06:08 +03:00
node-packages.nix Project import generated by Copybara. 2022-08-12 15:06:08 +03:00
README.md Project import generated by Copybara. 2021-07-16 21:40:57 +02:00
regen-nix Project import generated by Copybara. 2022-07-14 08:49:19 -04:00
regen-nix.nix Project import generated by Copybara. 2021-07-16 21:40:57 +02:00
src.nix Project import generated by Copybara. 2022-08-12 15:06:08 +03:00

cypress-example-kitchensink

This directory 'packages' cypress-example-kitchensink, which is used in cypress.passthru.tests.

The app is not really intended for deployment, so I didn't bother with actual packaging, just testing. If your real-world app looks like cypress-example-kitchensink, you'll want to use Nix multiple outputs so you don't deploy your test videos along with your app. Alternatively, you can set it up so that one derivation builds your server exe and another derivation takes that server exe and runs it with the cypress e2e tests.

Peculiarities

cypress and Cypress are distinct names.

  • cypress is the npm module, containing the executable cypress
  • whereas the executable Cypress comes from pkgs.cypress, a binary distribution (as of writing) by cypress.io.

updateScript is not provided for this example project. This seems preferable, because updates to it aren't particularly valuable and have a significant overhead. The goal is to smoke test cypress; not run the latest test suite (which it isn't anyway).

Updating

  • update the hash in src.nix
  • run regen-nix