From ca1715864eec23a05435841e2ff20bc6aab8a504 Mon Sep 17 00:00:00 2001 From: felipe Date: Tue, 7 Mar 2017 13:34:01 +0100 Subject: [PATCH] make sure all tests are running --- package.json | 4 ++-- ts/{tests/tsconfig.json => test-tsconfig.json} | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) rename ts/{tests/tsconfig.json => test-tsconfig.json} (58%) diff --git a/package.json b/package.json index a4a248aa0e..4752004953 100644 --- a/package.json +++ b/package.json @@ -4,8 +4,8 @@ "description": "Generate .docx documents with JavaScript (formerly Office-Clippy)", "main": "build/index.js", "scripts": { - "pretest": "rimraf ./build/tests && tsc -p ts/tests", - "test": "mocha ./build/tests/**/*.*", + "pretest": "rimraf ./build-tests && tsc -p ts/test-tsconfig.json", + "test": "mocha ./build-tests --recursive", "prepublish": "tsc -p ts" }, "repository": { diff --git a/ts/tests/tsconfig.json b/ts/test-tsconfig.json similarity index 58% rename from ts/tests/tsconfig.json rename to ts/test-tsconfig.json index 61178dd153..844ea999ff 100644 --- a/ts/tests/tsconfig.json +++ b/ts/test-tsconfig.json @@ -1,7 +1,8 @@ { "compilerOptions": { "target": "es6", - "outDir": "../../build/tests", + "outDir": "../build-tests", + "rootDir": "./", "module": "commonjs" } -} \ No newline at end of file +}