Move strict null checks from precomit to test

These checks are now taking a few seconds to run. This will continue to slow down as we null check more files. Moving them to the test scripts as pretest checks instead
This commit is contained in:
Matt Bierner 2018-10-10 18:35:03 -07:00
parent a2738f73e5
commit 2d4b7cb12e
3 changed files with 7 additions and 1 deletions

View file

@ -15,7 +15,7 @@
"watch": "gulp watch --max_old_space_size=4095",
"watch-client": "gulp watch-client --max_old_space_size=4095",
"monaco-editor-test": "mocha --only-monaco-editor",
"precommit": "node build/gulpfile.hygiene.js && npm run strict-null-check",
"precommit": "node build/gulpfile.hygiene.js",
"gulp": "gulp --max_old_space_size=4095",
"7z": "7z",
"update-grammars": "node build/npm/update-all-grammars.js",

View file

@ -15,6 +15,9 @@ set CODE=".build\electron\%NAMESHORT%"
node build\lib\electron.js
if %errorlevel% neq 0 node .\node_modules\gulp\bin\gulp.js electron
:: Pretest
yarn strict-null-check
:: Run tests
%CODE% .\test\electron\index.js %*

View file

@ -28,6 +28,9 @@ test -d node_modules || yarn
# Get electron
node build/lib/electron.js || ./node_modules/.bin/gulp electron
# Pretest
yarn strict-null-check
# Unit Tests
if [[ "$OSTYPE" == "darwin"* ]]; then
cd $ROOT ; ulimit -n 4096 ; \