@istanbuljs/nyc-config-typescript
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -6,2 +6,10 @@ # Change Log | ||
## [0.1.3](https://github.com/istanbuljs/istanbuljs/compare/@istanbuljs/nyc-config-typescript@0.1.2...@istanbuljs/nyc-config-typescript@0.1.3) (2019-05-02) | ||
**Note:** Version bump only for package @istanbuljs/nyc-config-typescript | ||
## [0.1.2](https://github.com/istanbuljs/istanbuljs/compare/@istanbuljs/nyc-config-typescript@0.1.1...@istanbuljs/nyc-config-typescript@0.1.2) (2019-04-24) | ||
@@ -8,0 +16,0 @@ |
{ | ||
"name": "@istanbuljs/nyc-config-typescript", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "nyc configuration that works with typescript", | ||
@@ -39,3 +39,3 @@ "main": "index.json", | ||
}, | ||
"gitHead": "90e60cc47833bb780680f916488ca24f0be36ca2" | ||
"gitHead": "679fc641b691442c4e9274e07809fef35272161d" | ||
} |
# nyc-config-typescript | ||
Handy default configuration for instrumenting your babel-backed | ||
Handy default configuration for instrumenting your TypeScript-backed | ||
project with test coverage using [nyc](https://github.com/istanbuljs/nyc). | ||
@@ -8,16 +8,8 @@ | ||
`npm i nyc source-map-support ts-node @istanbuljs/nyc-config-typescript --save-dev` | ||
``` | ||
npm i -D nyc source-map-support ts-node @istanbuljs/nyc-config-typescript | ||
``` | ||
Then write a `tsconfig.json` that looks something like this: | ||
**Your `tsconfig.json` must be configured to produce source maps, either inline or as sibling files.** | ||
## tsconfig.json | ||
```json | ||
{ | ||
"sourceMap": "inline", | ||
// OR | ||
"sourceMap": true | ||
} | ||
``` | ||
## .nycrc | ||
@@ -27,3 +19,3 @@ | ||
```json | ||
```js | ||
{ | ||
@@ -36,2 +28,4 @@ "extends": "@istanbuljs/nyc-config-typescript", | ||
This package specifies the `cache`, `exclude`, and `extension` options for you - only override those if you absolutely must. | ||
## Running Tests | ||
@@ -54,3 +48,3 @@ | ||
{ | ||
"test": "nyc mocha" | ||
"test": "tsc && nyc mocha" | ||
} | ||
@@ -57,0 +51,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
3866
52