X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/0be37383d730a360a81aad1c5e58a9e9a64a6515..fe6e7efceb1429fb2c32616895e675131acf476d:/CONTRIBUTE.md diff --git a/CONTRIBUTE.md b/CONTRIBUTE.md index 7ef727d..c9b7b9c 100644 --- a/CONTRIBUTE.md +++ b/CONTRIBUTE.md @@ -28,7 +28,7 @@ Svelte. Version 3 added theme and easier configuration. ``` yarn dev ``` - which will start a webserver on port 9880 and auto-reloads + which will start a webserver on port 9080 and auto-reloads whenever you edit files. Configuration in `rollup.config.js`. ## Testing @@ -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`)