Skip to content

Commit

Permalink
chore: see kilianc's work over finish line
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoe committed Jun 23, 2019
1 parent 8bb67b0 commit 40db7fc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 22 deletions.
5 changes: 4 additions & 1 deletion test/integration.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/* global describe, before, beforeEach, it */

const { spawnSync } = require('child_process')
const { statSync } = require('fs')
const c8Path = require.resolve('../bin/c8')
const nodePath = process.execPath
const chaiJestSnapshot = require('chai-jest-snapshot')
Expand Down Expand Up @@ -35,9 +36,11 @@ describe('c8', () => {
require.resolve('./fixtures/normal')
], {
env: {
'NODE_V8_COVERAGE': './coverage/tmp_'
'NODE_V8_COVERAGE': 'tmp/override'
}
})
const stats = statSync('tmp/override')
stats.isDirectory().should.equal(true)
output.toString('utf8').should.matchSnapshot()
})

Expand Down
28 changes: 7 additions & 21 deletions test/integration.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -210,26 +210,12 @@ what
hey
what
hey
-----------------------|----------|----------|----------|----------|-------------------|
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s |
-----------------------|----------|----------|----------|----------|-------------------|
All files | 89.77 | 74.21 | 88.14 | 89.77 | |
bin | 69.81 | 64.29 | 92.86 | 69.81 | |
c8.js | 69.81 | 64.29 | 92.86 | 69.81 |... 49,50,51,52,53 |
lib | 93.33 | 72.73 | 100 | 93.33 | |
is-cjs-esm-bridge.js | 90 | 70 | 100 | 90 | 9 |
parse-args.js | 97.69 | 47.83 | 100 | 97.69 | 99,107,108 |
report.js | 90.29 | 83.64 | 100 | 90.29 |... 40,160,161,162 |
lib/commands | 89.53 | 85.71 | 75 | 89.53 | |
check-coverage.js | 88.33 | 93.33 | 75 | 88.33 |... 46,57,58,59,60 |
report.js | 92.31 | 76.92 | 75 | 92.31 | 9,10 |
test/fixtures | 89.19 | 94.44 | 70 | 89.19 | |
async.js | 100 | 100 | 100 | 100 | |
export.mjs | 71.43 | 100 | 50 | 71.43 | 2,3 |
import.mjs | 100 | 100 | 100 | 100 | |
multiple-spawn.js | 100 | 100 | 100 | 100 | |
normal.js | 75 | 75 | 33.33 | 75 | 14,15,16,18,19,20 |
subprocess.js | 100 | 100 | 100 | 100 | |
-----------------------|----------|----------|----------|----------|-------------------|
-----------|----------|----------|----------|----------|-------------------|
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s |
-----------|----------|----------|----------|----------|-------------------|
All files | 83.33 | 85.71 | 60 | 83.33 | |
async.js | 100 | 100 | 100 | 100 | |
normal.js | 75 | 66.67 | 33.33 | 75 | 14,15,16,18,19,20 |
-----------|----------|----------|----------|----------|-------------------|
,"
`;

0 comments on commit 40db7fc

Please sign in to comment.