Skip to content

Commit

Permalink
adjust coverage threashold for branches in @aws-cdk/aws-stepfunctions
Browse files Browse the repository at this point in the history
  • Loading branch information
RomainMuller committed Jun 9, 2022
1 parent 89688da commit 9d23c5f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 10 additions & 1 deletion packages/@aws-cdk/aws-stepfunctions/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,11 @@
const baseConfig = require('@aws-cdk/cdk-build-tools/config/jest.config');
module.exports = baseConfig;
module.exports = {
...baseConfig,
coverageThreshold: {
...baseConfig.coverageThreshold,
global: {
...baseConfig.coverageThreshold.global,
branches: 77,
},
},
};
2 changes: 1 addition & 1 deletion scripts/check-build-prerequisites.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ app_v=$(node -p 'process.version')

# Check for version 10.*.* - 29.*.*
echo -e "Checking node version... \c"
if [ $(node -p "const [major, minor, _patch] = process.version.slice(1).split('.'); major > 14 || (major === 14 && minor >= 15)") = 'true' ]
if [ $(node -p "const [major, minor, _patch] = process.version.slice(1).split('.').map((v) => parseInt(v, 10)); major > 14 || (major === 14 && minor >= 15)") = 'true' ]
then
echo "Ok (${app_v})"
else
Expand Down

0 comments on commit 9d23c5f

Please sign in to comment.