got tests working for windows

This commit is contained in:
Dolan Miu
2016-07-01 18:45:44 +01:00
parent e7145020ae
commit 10554956f2
2 changed files with 8 additions and 1 deletions

View File

@ -4,7 +4,7 @@
"description": "Generate .docx documents with JavaScript (formerly Office-Clippy)", "description": "Generate .docx documents with JavaScript (formerly Office-Clippy)",
"main": "build/index.js", "main": "build/index.js",
"scripts": { "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", "test": "./node_modules/.bin/mocha ./build/tests/**/*Test.js",
"prepublish": "tsc -p ts" "prepublish": "tsc -p ts"
}, },

7
ts/tests/tsconfig.json Normal file
View File

@ -0,0 +1,7 @@
{
"compilerOptions": {
"target": "es6",
"outDir": "../../build/tests",
"module": "commonjs"
}
}