-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: improve test assertions (bcoe#28)
- Loading branch information
1 parent
39ebad6
commit 277c9d0
Showing
5 changed files
with
66 additions
and
24 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`c8 merges reports from subprocesses together 1`] = ` | ||
",first | ||
second | ||
--------------------|----------|----------|----------|----------|-------------------| | ||
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s | | ||
--------------------|----------|----------|----------|----------|-------------------| | ||
All files | 94.12 | 70.59 | 0 | 94.12 | | | ||
bin | 83.72 | 57.14 | 100 | 83.72 | | | ||
c8.js | 83.72 | 57.14 | 100 | 83.72 |... 22,40,41,42,43 | | ||
lib | 96.41 | 65.38 | 100 | 96.41 | | | ||
parse-args.js | 97.47 | 44.44 | 100 | 97.47 | 55,56 | | ||
report.js | 95.45 | 76.47 | 100 | 95.45 | 51,52,53,54 | | ||
test/fixtures | 95.16 | 83.33 | 0 | 95.16 | | | ||
async.js | 100 | 100 | 100 | 100 | | | ||
multiple-spawn.js | 100 | 100 | 100 | 100 | | | ||
normal.js | 85.71 | 75 | 0 | 85.71 | 14,15,16 | | ||
subprocess.js | 100 | 71.43 | 100 | 100 | 9,13 | | ||
--------------------|----------|----------|----------|----------|-------------------| | ||
," | ||
`; | ||
|
||
exports[`c8 reports coverage for script that exits normally 1`] = ` | ||
",hey | ||
i am a line of code | ||
what | ||
hey | ||
what | ||
hey | ||
what | ||
hey | ||
-----------|----------|----------|----------|----------|-------------------| | ||
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s | | ||
-----------|----------|----------|----------|----------|-------------------| | ||
All files | 91.18 | 88.89 | 0 | 91.18 | | | ||
async.js | 100 | 100 | 100 | 100 | | | ||
normal.js | 85.71 | 75 | 0 | 85.71 | 14,15,16 | | ||
-----------|----------|----------|----------|----------|-------------------| | ||
," | ||
`; |