Skip to content

Commit

Permalink
add cypress run doc
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasCARPi committed Mar 7, 2025
1 parent 81a3cbe commit 9102882
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions doc/contributing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -488,3 +488,20 @@ It is a good idea to use a pre-commit hook to run linters before the commit is a
fi
Now when you commit it should run this script and prevent the commit if there are errors.

Running cypress locally
=======================

In docker: `yarn run cy` (where `yarn` is the local command, not the one in container, because this starts docker images)

Locally: current workaround:

.. code-block:: bash
cd /tmp
git clone -b hypernext https://github.com/elabftw/elabftw
cd elabftw
npm i cypress
./node_modules/.bin/cypress open
Not great, not terrible.

0 comments on commit 9102882

Please sign in to comment.