diff --git a/ci/container/package.json b/ci/container/package.json index 493864f50..d0cfe7667 100644 --- a/ci/container/package.json +++ b/ci/container/package.json @@ -10,7 +10,7 @@ }, "devDependencies": { "async": "^3.2.3", - "mocha": "^5.2.0", + "mocha": "^10.2.0", "mock-require": "^3.0.3", "nyc": "^15.1.0", "test-console": "^2.0.0" diff --git a/ci/container/test_component.sh b/ci/container/test_component.sh index d7e0a0f95..28c62832e 100755 --- a/ci/container/test_component.sh +++ b/ci/container/test_component.sh @@ -20,9 +20,9 @@ cd $WORKSPACE if [[ "$LOCAL_USER_NAME" == "jenkins" ]]; then cd target_client - export PATH=$WORKSPACE/target_client/node_modules/mocha/bin:$PATH + export PATH=$WORKSPACE/target_client/node_modules/.bin:$PATH else - export PATH=$WORKSPACE/node_modules/mocha/bin:$PATH + export PATH=$WORKSPACE/node_modules/.bin:$PATH fi cp $SOURCE_ROOT/ci/container/package.json . npm install diff --git a/package.json b/package.json index 35741eba9..747b52c41 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,7 @@ "@aws-sdk/types": "^3.387.0", "async": "^3.2.3", "eslint": "^8.41.0", - "mocha": "^10.1.0", + "mocha": "^10.2.0", "mock-require": "^3.0.3", "nyc": "^15.1.0", "test-console": "^2.0.0"