Skip to content

Commit

Permalink
unbreak check-features
Browse files Browse the repository at this point in the history
  • Loading branch information
edd committed Aug 19, 2024
1 parent ef5171d commit 1f5dc7c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bin/approbation.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ if (command === 'check-filenames') {
process.exit(1);
}

res = checkFeatures(specs, argv.features, ignoreGlob, isVerbose)
res = checkFeatures(paths, argv.features, ignoreGlob, isVerbose)
process.exit(res.exitCode)
} else if (command === 'check-references') {
const testsGlob = argv.tests
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vegaprotocol/approbation",
"version": "4.9.1",
"version": "4.9.2",
"description": "Match Acceptance Criteria Codes with the tests that test them",
"engine": ">= 18",
"bin": "./bin/approbation.js",
Expand Down
4 changes: 4 additions & 0 deletions src/check-features.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ function checkFeatures(paths, featuresPath, ignoreGlob, isVerbose = false) {
exitCode = 1
}

if (exitCode === 0) {
console.log(pc.green(pc.bold('All features are good')))
}

return {
exitCode,
res
Expand Down

0 comments on commit 1f5dc7c

Please sign in to comment.