Closed emilymcafee closed 8 years ago
I want to use cloudfriend's template validator in my package.json like:
package.json
"pretest": "validate-template my-template.js"
I've added an exit 1 so that tests fail if this validation fails, otherwise they'll just log the failure and continue on happily.
exit 1
@rclark what do you think? Is cloudfriend the right spot for this, or is there a better way to achieve this?
:+1: I've been writing dedicated tape tests wrapped around the validation function, but this is great.
I want to use cloudfriend's template validator in my
package.json
like:I've added an
exit 1
so that tests fail if this validation fails, otherwise they'll just log the failure and continue on happily.@rclark what do you think? Is cloudfriend the right spot for this, or is there a better way to achieve this?