Skip to content

Commit

Permalink
test: wrestle with windows directories
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoe committed Jun 23, 2019
1 parent e0fa89f commit c9decd2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"url": "git@github.com:bcoe/c8.git"
},
"scripts": {
"test": "node ./bin/c8.js --reporter=html --reporter=text mocha --timeout=4000 ./test/*.js",
"test": "node ./bin/c8.js --reporter=html --reporter=text mocha --timeout=8000 ./test/*.js",
"test:snap": "CHAI_JEST_SNAPSHOT_UPDATE_ALL=true npm test",
"posttest": "standard",
"coverage": "./bin/c8.js report --reporter=html --reporter=text-lcov | coveralls",
Expand Down
4 changes: 2 additions & 2 deletions test/parse-args.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ describe('parse-args', () => {
const argv = buildYargs().parse(hideInstrumenteeArgs())
const instrumenteeArgs = hideInstrumenterArgs(argv)
instrumenteeArgs.should.eql(['my-app', '--help'])
argv.tempDirectory.endsWith('/coverage/tmp').should.be.equal(true)
argv.tempDirectory.endsWith(join('coverage', 'tmp')).should.be.equal(true)
})
})

Expand All @@ -33,7 +33,7 @@ describe('parse-args', () => {
process.env.NODE_V8_COVERAGE = './coverage/tmp_'
process.argv = ['node', 'c8', '--foo=99', 'my-app', '--help']
const argv = buildYargs().parse(hideInstrumenteeArgs())
argv.tempDirectory.endsWith(join('coverage', 'tmp_')).should.be.equal(true)
argv.tempDirectory.endsWith('/coverage/tmp_').should.be.equal(true)
process.env.NODE_V8_COVERAGE = NODE_V8_COVERAGE
})
})
Expand Down

0 comments on commit c9decd2

Please sign in to comment.