Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoffer Åström committed Oct 17, 2017
1 parent e7b1c6d commit 17b8ca7
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 23 deletions.
30 changes: 15 additions & 15 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 6 additions & 7 deletions src/commands/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@ const fs = require('fs');

function runTests(files, { coverage, nyc, mocha }) {
const n = new NYC(nyc);
if (coverage) {
n.reset();
n.wrap();
n.addAllFiles();
}
const m = new Mocha(mocha);
files.forEach((f) => {
Object.keys(require.cache).forEach((key) => {
Expand All @@ -23,7 +18,11 @@ function runTests(files, { coverage, nyc, mocha }) {
});
m.addFile(f);
});

if (coverage) {
n.reset();
n.wrap();
n.addAllFiles();
}
const runner = m.run((failures) => {
process.on('exit', () => {
process.exit(failures);
Expand Down Expand Up @@ -66,7 +65,7 @@ const command = {
},
'nyc.exclude': {
description: 'Exclude glob',
default: [],
default: ['coverage'],
type: 'array',
},
'nyc.sourceMap': {
Expand Down
2 changes: 1 addition & 1 deletion src/commands/webdriver.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const command = {
const p = path.resolve(process.cwd(), foundConfigPath);
const foundConfig = require(p);
if (typeof foundConfig === 'function') {
config = extend(true, baseConfig, foundConfig());
config = extend(true, baseConfig, foundConfig(baseConfig));
} else {
config = extend(true, baseConfig, foundConfig);
}
Expand Down
1 change: 1 addition & 0 deletions src/config/webdriver-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ module.exports = function initConfig() {
const reporterPlugin = {
};
const config = {
artifactsPath: 'test/component/artifacts',
// ---------------------------------------------------------------------------
// ----- How to connect to Browser Drivers -----------------------------------
// ---------------------------------------------------------------------------
Expand Down

0 comments on commit 17b8ca7

Please sign in to comment.