Bug 32224: Add cypress to yarn commands
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 16 Nov 2022 08:19:12 +0000 (09:19 +0100)
committerTomas Cohen Arazi <tomascohen@theke.io>
Thu, 17 Nov 2022 17:08:00 +0000 (14:08 -0300)
Either I am missing something obvious, or we need to add cypress to the scripts of package.json

With /kohadevbox/node_modules only (ie. without $SYNC_REPO/node_modules), I cannot run
  yarn run cypress run

`cypress run` is working with an adjusted PATH (see https://gitlab.com/koha-community/koha-testing-docker/-/issues/313#note_1173792905) but I think both should work.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
package.json

index d7c1209..3896df3 100644 (file)
@@ -45,7 +45,8 @@
     "build_js": "webpack --mode production",
     "watch_js": "webpack --mode development --watch",
     "css": "gulp css",
-    "watch": "gulp watch"
+    "watch": "gulp watch",
+    "cypress": "cypress"
   },
   "repository": {
     "type": "git",