mocha-typescript
Advanced tools
Comparing version 1.0.15 to 1.0.16
@@ -63,3 +63,4 @@ #!/usr/bin/env node | ||
} | ||
mocha = spawn("node", [argv.mocha, "--opts", argv.opts, "--colors"]); | ||
var mocha_options = ["--opts", argv.opts, "--colors"].concat(argv._); | ||
mocha = spawn("node", [argv.mocha].concat(mocha_options)); | ||
mocha.on("close", code => { | ||
@@ -66,0 +67,0 @@ if (code) { |
{ | ||
"name": "mocha-typescript", | ||
"version": "1.0.15", | ||
"version": "1.0.16", | ||
"description": "TypeScript decorators based wrapper over mocha's interface", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -18,2 +18,3 @@ TypeScript Decorators Based Interface for Mocha | ||
[Haringat](https://github.com/PanayotCankov/mocha-typescript/pull/6) for the async support in before and after methods. | ||
[godart](https://github.com/PanayotCankov/mocha-typescript/pull/16) for taking the extra step to support non-default test file paths. | ||
@@ -44,6 +45,9 @@ # Test Watcher | ||
The `mocha-typescript-watch` script is designed as a command line tool. | ||
You can provide the arguments in the package.json's script, for example: | ||
You can provide the arguments in the package.json's script. | ||
In case you are not using the default `test.js` file as entrypoint for mocha, | ||
you can list the test suite files as arguments to mocha-typescript-watch and they will be passed to mocha. | ||
For example: | ||
``` | ||
"scripts": { | ||
"dev-test-watch": "mocha-typescript-watch -p tsconfig.test.json -o mocha.opts" | ||
"dev-test-watch": "mocha-typescript-watch -p tsconfig.test.json -o mocha.opts dist/test1.js dist/test2.js" | ||
}, | ||
@@ -50,0 +54,0 @@ ``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
36376
388
405