You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+34Lines changed: 34 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -32,6 +32,40 @@ and then:
32
32
33
33
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`.
34
34
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
+
constapp=newEmberApp(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
+
35
69
## Configuration
36
70
37
71
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