]> git.openstreetmap.org Git - nominatim-ui.git/blobdiff - CONTRIBUTE.md
Helper check for details keywords (#160)
[nominatim-ui.git] / CONTRIBUTE.md
index 7ef727d4c31156f26520a1ef0cbe6224682c81b5..c9103379afcef2456ae26ca98632507fe56301e1 100644 (file)
@@ -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`)