mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
📚 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:
parent
2d6f73ed68
commit
d908886c03
@ -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:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user