This commit is contained in:
Siarhei Fedartsou 2022-09-08 13:29:07 +02:00
parent 896114680c
commit 217087f700
3 changed files with 3 additions and 2 deletions

View File

@ -45,6 +45,7 @@ jobs:
- run: ls -R build
- name: Run node tests
run: |
set OSRM_BUILD_DIR=.\build\Release
npm run nodejs-tests
npm test

View File

@ -21,7 +21,7 @@ module.exports = function () {
this.PROFILES_PATH = path.resolve(this.ROOT_PATH, 'profiles');
this.FIXTURES_PATH = path.resolve(this.ROOT_PATH, 'unit_tests/fixtures');
this.BIN_PATH = process.env.OSRM_BUILD_DIR && process.env.OSRM_BUILD_DIR || path.resolve(this.ROOT_PATH, 'build/Release');
this.BIN_PATH = process.env.OSRM_BUILD_DIR && process.env.OSRM_BUILD_DIR || path.resolve(this.ROOT_PATH, 'build');
this.DATASET_NAME = 'cucumber';
this.PLATFORM_WINDOWS = process.platform.match(/^win.*/);
this.DEFAULT_ENVIRONMENT = process.env;

View File

@ -23,7 +23,7 @@
"clean": "rm -rf test/cache",
"docs": "./scripts/build_api_docs.sh",
"install": "node-pre-gyp install --fallback-to-build=false || ./scripts/node_install.sh",
"nodejs-tests": "test/nodejs/index.js | faucet"
"nodejs-tests": "node test/nodejs/index.js | faucet"
},
"repository": {
"type": "git",