diff --git a/package.json b/package.json index 18f2968a..a94ffde1 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/test/parse-args.js b/test/parse-args.js index 5d66709e..e742a4d2 100644 --- a/test/parse-args.js +++ b/test/parse-args.js @@ -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) }) }) @@ -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 }) })