Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix missing absolute path resolution in glob version #106

Merged
merged 3 commits into from
Jan 12, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
"fs-extra": "^0.30.0",
"gh-pages": "^0.12.0",
"gitbook-cli": "^2.3.0",
"glob": "7.0.5",
"mocha": "^3.0.0",
"node-sass": "~4.1.1",
"np": "^2.9.0",
Expand Down
6 changes: 4 additions & 2 deletions src/runner/TestRunner.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,11 +232,13 @@ export default class TestRunner extends EventEmitter {

const files = await glob(this.entries, {
cwd: this.options.cwd,
absolute: true,
absolute: false, // this option isn't covered by the version range in 'globby' for 'glob' (default value is false)
});

const entryConfig = new EntryConfig();
files.forEach((f) => entryConfig.addFile(f));
files
.map((f) => path.join(this.options.cwd, f))
.forEach((f) => entryConfig.addFile(f));

const includeLoaderQuery = {
include: this.includes,
Expand Down