@intuit/judo
Advanced tools
Comparing version 0.1.1 to 0.2.0
@@ -0,1 +1,13 @@ | ||
# v0.2.0 (Wed Oct 02 2019) | ||
#### 🚀 Enhancement | ||
- 5 - Adding error handler for invalid YAML [#32](https://github.com/intuit/judo/pull/32) (evanjfrancis@gmail.com) | ||
#### 🐛 Bug Fix | ||
- Bump mixin-deep from 1.3.1 to 1.3.2 [#24](https://github.com/intuit/judo/pull/24) ([@dependabot[bot]](https://github.com/dependabot[bot]) [@ejfrancis](https://github.com/ejfrancis)) | ||
--- | ||
# v0.1.1 (Tue Oct 01 2019) | ||
@@ -2,0 +14,0 @@ |
@@ -109,6 +109,15 @@ #!/usr/bin/env node | ||
const fileContents = _fs.default.readFileSync(yamlFilePath); | ||
const yamlFile = _jsYaml.default.safeLoad(fileContents, 'utf8'); | ||
// logger.info('Running step file: ' + yamlFilePath); | ||
const runSteps = yamlFile.run; | ||
const runStepNames = Object.keys(runSteps); | ||
let runSteps = {}; | ||
// first step for every file is gonna be parse itself | ||
let runStepNames = []; | ||
try { | ||
const yamlFile = _jsYaml.default.safeLoad(fileContents, 'utf8'); | ||
// logger.info('Running step file: ' + yamlFilePath); | ||
runSteps = yamlFile.run; | ||
runStepNames = Object.keys(runSteps); | ||
} catch (e) { | ||
_logger.logger.error(`YAML PARSER FAILED on file ${yamlFilePath}: ${e.message}`); | ||
process.exit(1); | ||
} | ||
const numTotal = runStepNames.length; | ||
@@ -115,0 +124,0 @@ const thisStepFileResults = []; |
{ | ||
"name": "@intuit/judo", | ||
"version": "0.1.1", | ||
"version": "0.2.0", | ||
"description": "Test command line interfaces.", | ||
@@ -5,0 +5,0 @@ "author": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
50605
519