X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/3d7c31f8c0fc3d667d7e84fd8a6acedf87e11dd5..6c26d04d6a58f9789de970321ed181312b582481:/CONTRIBUTE.md diff --git a/CONTRIBUTE.md b/CONTRIBUTE.md index 7ef727d..c910337 100644 --- a/CONTRIBUTE.md +++ b/CONTRIBUTE.md @@ -40,6 +40,17 @@ The `test/` setup uses [Mocha](https://mochajs.org/) to run tests. Tests use [Pu ``` yarn test + API_ON_SAME_PORT=1 yarn test + ``` + + Setting API_ON_SAME_PORT simulates having both the API and UI on the same server + port. That's a rare setup but something https://nominatim.openstreetmap.org/ does + so worth testing. + + To run a single test file only + + ``` + yarn run rollup -c && yarn run mocha test/details.js ``` * Run syntax linter (configuration in `.eslint.js`)