]> git.openstreetmap.org Git - nominatim-ui.git/blobdiff - CONTRIBUTE.md
Add tests for running API and UI on the same server port (#151)
[nominatim-ui.git] / CONTRIBUTE.md
index 7ef727d4c31156f26520a1ef0cbe6224682c81b5..9c184e462d7c2e7b73f2676d29a5ac97de95b364 100644 (file)
@@ -40,8 +40,13 @@ 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.
+
 * Run syntax linter (configuration in `.eslint.js`)
 
    ```