From 10554956f222198cb27193dc6ebf1c206bc8df62 Mon Sep 17 00:00:00 2001 From: Dolan Miu Date: Fri, 1 Jul 2016 18:45:44 +0100 Subject: [PATCH] got tests working for windows --- package.json | 2 +- ts/tests/tsconfig.json | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 ts/tests/tsconfig.json diff --git a/package.json b/package.json index 41ca862fd9..02a873d048 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "Generate .docx documents with JavaScript (formerly Office-Clippy)", "main": "build/index.js", "scripts": { - "pretest": "tsc ts/tests/*Test.ts --module commonjs --outDir ./build/tests", + "pretest": "tsc -p ts/tests", "test": "./node_modules/.bin/mocha ./build/tests/**/*Test.js", "prepublish": "tsc -p ts" }, diff --git a/ts/tests/tsconfig.json b/ts/tests/tsconfig.json new file mode 100644 index 0000000000..61178dd153 --- /dev/null +++ b/ts/tests/tsconfig.json @@ -0,0 +1,7 @@ +{ + "compilerOptions": { + "target": "es6", + "outDir": "../../build/tests", + "module": "commonjs" + } +} \ No newline at end of file