Configure CYPRESS_CACHE_FOLDER

The default doesn’t seem to work well in CI. (Note that cypress/.cache
is already in the .gitignore.)

Bug: T361520
Change-Id: I7e56d102ac2252a23b49c68f9df8940d5c060aa9
This commit is contained in:
Lucas Werkmeister 2024-04-02 14:54:57 +02:00
parent 34a58e9860
commit b7a1116df6
2 changed files with 4 additions and 2 deletions

2
.npmrc Normal file
View file

@ -0,0 +1,2 @@
# Controls where the cypress binary is downloaded during `npm install`
CYPRESS_CACHE_FOLDER=./cypress/.cache

View file

@ -3,8 +3,8 @@
"private": true,
"scripts": {
"selenium-daily": "npm run selenium-test",
"selenium-test": "cypress run",
"cypress:open": "cypress open",
"selenium-test": "CYPRESS_CACHE_FOLDER=./cypress/.cache cypress run",
"cypress:open": "CYPRESS_CACHE_FOLDER=./cypress/.cache cypress open",
"doc": "jsdoc -c jsdoc.json",
"test": "grunt test",
"lint:fix": "grunt test --fix"