Skip to content

Commit

Permalink
chore(jest): compile before test run so we get type checks...slow but…
Browse files Browse the repository at this point in the history
… no other option kulshekhar/ts-jest#79
  • Loading branch information
jayphelps committed Feb 25, 2017
1 parent c418f07 commit 883d17d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -29,6 +29,7 @@
"transform": {
".ts": "<rootDir>/node_modules/ts-jest/preprocessor.js"
},
"testResultsProcessor": "<rootDir>/node_modules/ts-jest/coverageprocessor.js",
"testRegex": "test/.*.ts$",
"moduleFileExtensions": [
"ts",
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"target": "es6",
"sourceMap": true,
"strictNullChecks": true,
"noEmitOnError": true,
"types": [
"node"
],
Expand Down

0 comments on commit 883d17d

Please sign in to comment.