diff --git a/package.json b/package.json index ed2c5f4..9196015 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ "build-all": "npm run build-examples && npm run build-dashboard", "build": "npm run clean && npm run mkdirs && npm run build-all && npm run copy", "start": "npm run examples", - "test" : "sh ./ts-tests/runTsTests.sh" + "test" : "./ts-tests/runTsTests.sh" }, "repository": { "type": "git", diff --git a/ts-tests/runTsTests.sh b/ts-tests/runTsTests.sh index f04d1bb..5970611 100755 --- a/ts-tests/runTsTests.sh +++ b/ts-tests/runTsTests.sh @@ -7,7 +7,7 @@ error_found=false # has an invalid property - should complain ./node_modules/.bin/tsc --target "ES5" --module 'commonjs' --lib esnext,dom --allowSyntheticDefaultImports --jsx 'preserve' --noEmit --strict ts-tests/InvalidGridProperty.tsx &> /dev/null -if [ $? -ne 0 ]; then +if [ $? -ne 1 ]; then echo "ag-grid-react grid with invalid property should throw a compiler error" error_found=true fi