From a0ef33ef63b5598e2709eb5c0449eafb68690427 Mon Sep 17 00:00:00 2001 From: Piotr Bulawa Date: Wed, 25 Oct 2023 16:57:07 +0200 Subject: [PATCH] Use absolute path for mocha --- ci/container/test_component.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/container/test_component.sh b/ci/container/test_component.sh index e7a9b9304..8594b75a2 100755 --- a/ci/container/test_component.sh +++ b/ci/container/test_component.sh @@ -25,7 +25,7 @@ else export PATH=$WORKSPACE/node_modules/mocha/bin:$PATH fi cp $SOURCE_ROOT/ci/container/package.json . -npm install -g +npm install PACKAGE_NAME=$(cd $WORKSPACE && ls snowflake-sdk*.tgz) npm install $WORKSPACE/${PACKAGE_NAME} @@ -74,7 +74,7 @@ if [[ "$SHOULD_GENERATE_COVERAGE_REPORT" == "1" ]]; ) else MOCHA_CMD=( - "node" "mocha" "--timeout" "$TIMEOUT" "--recursive" "--full-trace" + "node" "$WORKSPACE/node_modules/mocha/bin/mocha.js" "--timeout" "$TIMEOUT" "--recursive" "--full-trace" ) fi