diff --git a/package.json b/package.json index 1221b85..51d17b1 100644 --- a/package.json +++ b/package.json @@ -17,8 +17,8 @@ "start": "nodemon --exec \"clear && ts-node src/main.ts && ../../wabt/out/wasm2wast example.wasm && ../../wabt/out/wasm-interp example.wasm\" --watch src -e ts,js", "build": "tsc", "watch": "tsc -w", - "test": "npm run build:wasm-mocks && jest", - "test:watch": "nodemon --exec \"npm run build:wasm-mocks && jest --watchAll\" --watch test -e wast", + "test": "tsc --noEmit && npm run build:wasm-mocks && jest", + "test:watch": "nodemon --exec \"tsc --noEmit && npm run build:wasm-mocks && jest --watchAll\" --watch test -e wast,ts --watch src", "build:third-party": "cd third-party/wabt && make", "build:wasm-mocks": "scripts/build/wasm-mocks.sh", "clean:wasm-mocks": "rm test/*.wasm", @@ -29,6 +29,7 @@ "transform": { ".ts": "/node_modules/ts-jest/preprocessor.js" }, + "testResultsProcessor": "/node_modules/ts-jest/coverageprocessor.js", "testRegex": "test/.*.ts$", "moduleFileExtensions": [ "ts", diff --git a/tsconfig.json b/tsconfig.json index 9edcb83..7cf8dff 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,6 +4,7 @@ "target": "es6", "sourceMap": true, "strictNullChecks": true, + "noEmitOnError": true, "types": [ "node" ],