mocha-typescript
Advanced tools
Comparing version 1.1.7 to 1.1.8
@@ -110,2 +110,8 @@ #!/usr/bin/env node | ||
}); | ||
mochap.stderr.on("data", chunk => { | ||
// Ensure old processes won't interfere tsc, .pipe here may be good enough. | ||
if (source === mochap) { | ||
process.stderr.write(chunk); | ||
} | ||
}); | ||
} | ||
@@ -112,0 +118,0 @@ var tscp = spawn("node", [argv.tsc, "-p", argv.project, "-w"]); |
{ | ||
"name": "mocha-typescript", | ||
"version": "1.1.7", | ||
"version": "1.1.8", | ||
"description": "TypeScript decorators based wrapper over mocha's interface", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -10,3 +10,3 @@ Writing mocha tests with style - OOP style: | ||
``` | ||
The test UI will reguster a suite with tests for the `@suite` and `@test` decorators. | ||
The test UI will register a suite with tests for the `@suite` and `@test` decorators. | ||
When the tests run, the class will be instantiated once for each `@test` method and the method will be called. | ||
@@ -53,3 +53,3 @@ | ||
The `mocha-typescript` comes with a watcher script that runs the TypeScript compiler in watch mode, | ||
and upon successful compilations runs the mocha tests, concatinating the output of both. This in combination with the support for "only": | ||
and upon successful compilations runs the mocha tests, concatenating the output of both. This in combination with the support for "only": | ||
``` TypeScript | ||
@@ -71,3 +71,3 @@ @suite class One { | ||
## Adding Mocha-TypeScript to Existing Project | ||
If you allready have an npm package with mocha testing integrated just install `mocha-typescript`: | ||
If you already have an npm package with mocha testing integrated just install `mocha-typescript`: | ||
``` bash | ||
@@ -106,3 +106,3 @@ npm i mocha-typescript --save-dev | ||
``` | ||
Edit the package.json and set the `sripts` section to: | ||
Edit the package.json and set the `scripts` section to: | ||
``` | ||
@@ -117,3 +117,3 @@ "scripts": { | ||
You may omit the `nyc` tool and have `"test": "mocha"` instead, | ||
`nic` is the instanbul code coverage reporting tool. | ||
`nyc` is the instanbul code coverage reporting tool. | ||
@@ -237,4 +237,4 @@ Add a `tsconfig.json` file with settings similar to: | ||
## Generated Suites and Tests | ||
Mocha's simple interface is very flexible when test have to be dynamically generated. | ||
If tests for classes have to be generated dinamically here is an example: | ||
Mocha's simple interface is very flexible when tests have to be dynamically generated. | ||
If tests for classes have to be generated dynamically here is an example: | ||
``` TypeScript | ||
@@ -254,3 +254,3 @@ [{ title: 'google', url: 'www.google.com' }, | ||
The static before and after methods are invoked before the suite and after the suite, | ||
the instance before and after methods are infvoked before and after each test method. | ||
the instance before and after methods are invoked before and after each test method. | ||
``` TypeScript | ||
@@ -257,0 +257,0 @@ @suite class Suite { |
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
90432
1271