Skip to content

Commit 5987f6c

Browse files
lifeartRobbieTheWagner
authored andcommitted
TypeScript integration (howto) (#196)
* TypeScript integration (howto) * removed some abstraction * 1.0.0-beta.6
1 parent ce128d5 commit 5987f6c

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

README.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,40 @@ and then:
3232

3333
When running with `parallel` set to true, the final reports can be merged by using `ember coverage-merge`. The final merged output will be stored in the `coverageFolder`.
3434

35+
## TypeScript integration
36+
37+
Steps:
38+
39+
* in `tsconfig.json`
40+
```js
41+
{
42+
"compilerOptions": {
43+
"inlineSourceMap": true,
44+
"inlineSources": true
45+
}
46+
}
47+
```
48+
* in `ember-cli-build.js`
49+
```js
50+
const app = new EmberApp(defaults, {
51+
babel: {
52+
sourceMaps: 'inline'
53+
},
54+
sourcemaps: {
55+
enabled: true,
56+
extensions: ['js']
57+
}
58+
});
59+
```
60+
* in `package.json` specify latest available version
61+
```js
62+
{
63+
devDependencies: {
64+
"ember-cli-code-coverage": "^1.0.0-beta.6"
65+
}
66+
}
67+
```
68+
3569
## Configuration
3670

3771
Configuration is optional. It should be put in a file at `config/coverage.js` (`configPath` configuration in package.json is honored). In addition to this you can configure Istanbul by adding a `.istanbul.yml` file to the root directory of your app (See https://github.com/gotwarlost/istanbul#configuring)

0 commit comments

Comments
 (0)