Skip to content

Commit 410cc0f

Browse files
committed
feat: add cypress
We also need xhost to run cypress, as if we don't it is assumed that we are in a headless display and therefore we need Xvfb (which we also don't install...)
1 parent f2c0ca2 commit 410cc0f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

nilla.nix

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,13 +391,17 @@ nilla.create (
391391
mkShell,
392392
ccache,
393393
collabora-online,
394+
cypress,
394395
typescript-language-server,
396+
xorg,
395397
...
396398
}:
397399
mkShell {
398400
packages = [
399401
ccache
400402
typescript-language-server
403+
cypress
404+
xorg.xhost
401405
];
402406

403407
inputsFrom = [
@@ -412,6 +416,9 @@ nilla.create (
412416
"--enable-cypress"
413417
];
414418

419+
CYPRESS_RUN_BINARY = "${cypress}/bin/Cypress";
420+
CYPRESS_SKIP_VERIFY = "1";
421+
415422
CCACHE_COMPRESS = "1";
416423
TMPDIR = "/tmp";
417424
};

0 commit comments

Comments
 (0)