Fix tests using new mocha-webpack

This commit is contained in:
Dolan Miu
2017-12-30 20:01:20 +00:00
parent d8d16b4a7d
commit c518d1c6c7
3 changed files with 6 additions and 27 deletions

View File

@ -4,8 +4,7 @@
"description": "Generate .docx documents with JavaScript (formerly Office-Clippy)",
"main": "build/index.js",
"scripts": {
"pretest": "rimraf ./build-tests && tsc -p ./test-tsconfig.json",
"test": "mocha ./build-tests --recursive",
"test": "mocha-webpack \"src/**/*.ts\"",
"prepublishOnly": "npm run build",
"lint": "tslint --project .",
"build": "npm run webpack",
@ -58,6 +57,7 @@
"awesome-typescript-loader": "^3.4.1",
"chai": "^3.5.0",
"mocha": "^3.2.0",
"mocha-webpack": "^1.0.1",
"prompt": "^1.0.0",
"rimraf": "^2.5.2",
"shelljs": "^0.7.7",