From 6224f314908034ec867265dc92201d6dc7c53b1b Mon Sep 17 00:00:00 2001 From: Mark Wubben Date: Thu, 6 Apr 2017 16:11:19 +0100 Subject: [PATCH] Set up regression testing for TypeScript --- package.json | 3 ++- test/ts-types/.gitignore | 1 + test/ts-types/tsconfig.json | 8 ++++++++ 3 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 test/ts-types/.gitignore create mode 100644 test/ts-types/tsconfig.json diff --git a/package.json b/package.json index 3b771f2ea..6cd97b092 100644 --- a/package.json +++ b/package.json @@ -43,7 +43,7 @@ "node": ">=4" }, "scripts": { - "test": "xo && flow check test/flow-types && nyc tap --no-cov --timeout=150 --jobs=4 test/*.js test/reporters/*.js", + "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", "test-win": "tap --no-cov --reporter=classic --timeout=150 --jobs=4 test/*.js test/reporters/*.js", "visual": "node test/visual/run-visual-tests.js", "prepublish": "npm run make-ts", @@ -188,6 +188,7 @@ "tap": "^10.0.0", "temp-write": "^3.1.0", "touch": "^1.0.0", + "typescript": "^2.2.2", "xo": "^0.18.0", "zen-observable": "^0.5.1" }, diff --git a/test/ts-types/.gitignore b/test/ts-types/.gitignore new file mode 100644 index 000000000..a6c7c2852 --- /dev/null +++ b/test/ts-types/.gitignore @@ -0,0 +1 @@ +*.js diff --git a/test/ts-types/tsconfig.json b/test/ts-types/tsconfig.json new file mode 100644 index 000000000..600a425b7 --- /dev/null +++ b/test/ts-types/tsconfig.json @@ -0,0 +1,8 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es6", + "noImplicitAny": false, + "sourceMap": false + } +}