Skip to content

Commit 6224f31

Browse files
committed
Set up regression testing for TypeScript
1 parent d27bc8f commit 6224f31

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"node": ">=4"
4444
},
4545
"scripts": {
46-
"test": "xo && flow check test/flow-types && nyc tap --no-cov --timeout=150 --jobs=4 test/*.js test/reporters/*.js",
46+
"test": "xo && flow check test/flow-types && tsc -p test/ts-types && nyc tap --no-cov --timeout=150 --jobs=4 test/*.js test/reporters/*.js",
4747
"test-win": "tap --no-cov --reporter=classic --timeout=150 --jobs=4 test/*.js test/reporters/*.js",
4848
"visual": "node test/visual/run-visual-tests.js",
4949
"prepublish": "npm run make-ts",
@@ -188,6 +188,7 @@
188188
"tap": "^10.0.0",
189189
"temp-write": "^3.1.0",
190190
"touch": "^1.0.0",
191+
"typescript": "^2.2.2",
191192
"xo": "^0.18.0",
192193
"zen-observable": "^0.5.1"
193194
},

test/ts-types/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.js

test/ts-types/tsconfig.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"compilerOptions": {
3+
"module": "commonjs",
4+
"target": "es6",
5+
"noImplicitAny": false,
6+
"sourceMap": false
7+
}
8+
}

0 commit comments

Comments
 (0)