Skip to content
Permalink
Browse files

LEND-3123 Fail unit tests if source controlled files are modified #20

  • Loading branch information...
Forest Trimble baileydog
Forest Trimble authored and baileydog committed Oct 22, 2018
1 parent d532f69 commit e319ac2eccafd3f8fadee5d7371abf64c18407da
@@ -0,0 +1,9 @@
#!/bin/bash

status=`git status | grep modified`

if [[ ! -z $status ]]; then
echo "Failing because files have been modified by tests"
echo "$status"
exit 1
fi

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -1,6 +1,6 @@
{
"name": "promise-utils",
"version": "1.11.0",
"version": "1.12.0",
"description": "Lodash-like utilities for dealing with promises",
"main": "dist/src/index.js",
"types": "dist/src/index.d.ts",
@@ -11,7 +11,7 @@
"lint": "yarn pretty && npm run lintSrc && npm run lintTest",
"lintFix": "npm run lintSrc --fix && npm run lintTest --fix",
"testCode": "nyc ava",
"test": "tsc && npm run testCode && npm run lint",
"test": "tsc && npm run testCode && npm run lint && ./bin/assert_no_file_modifications.sh",
"start": "grunt"
},
"repository": {

0 comments on commit e319ac2

Please sign in to comment.
You can’t perform that action at this time.