-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: use Node.js' source-map cache, to support tools like ts-node (b…
…coe#152) BREAKING CHANGE: Node.js' source-map and lineLength cache is now used to remap coverage output (this allows tools like ts-node to be supported, which transpile at runtime).
- Loading branch information
Showing
9 changed files
with
164 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,5 +4,5 @@ os: | |
- osx | ||
- windows | ||
node_js: | ||
- "12" | ||
- "13" | ||
after_success: npm run coverage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
export interface FooOptions { | ||
x: number; | ||
} | ||
|
||
class Foo { | ||
x: number; | ||
constructor (options: FooOptions) { | ||
this.x = options.x ? options.x : 99 | ||
if (this.x) { | ||
console.info('covered') | ||
} else { | ||
console.info('uncovered') | ||
} | ||
this.methodC() | ||
} | ||
methodA (): number { | ||
console.info('covered') | ||
return 33 | ||
} | ||
/* c8 ignore next 3 */ | ||
methodB () { | ||
console.info('uncovered') | ||
} | ||
private methodC () { | ||
console.info('covered') | ||
} | ||
methodD () { | ||
console.info('uncovered') | ||
} | ||
} | ||
|
||
const a = new Foo({x: 0}) | ||
const b = new Foo({x: 33}) | ||
a.methodA() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters