📚 add tip about running karma js tests on mac (#12140)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
This commit is contained in:
Chris Sewell 2024-03-20 21:55:34 +01:00 committed by GitHub
parent 2d6f73ed68
commit d908886c03
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -197,6 +197,14 @@ To run JavaScript tests, use ``npm``::
npm install npm install
npm run test npm run test
.. tip::
`karma` requires a Firefox binary to use as a test browser.
For Unix-based systems, you can specify the path to the Firefox binary using::
FIREFOX_BIN="/Applications/Firefox.app/Contents/MacOS/firefox" npm test
New unit tests should be included in the ``tests`` directory where New unit tests should be included in the ``tests`` directory where
necessary: necessary: