Skip to content

Commit 77646e6

Browse files
adamjmcgrathRobbieTheWagner
authored andcommitted
Update attach-middleware.js (#208)
See #207
1 parent 012463c commit 77646e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/attach-middleware.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function writeCoverage(coverage, fileLookup, root, map) {
2222
// Convert absolute paths (path to process.cwd + module path) to relative (module) paths, when necessary (babel >6)
2323
// eg. /Users/user/apps/my-ember-app/my-ember-app/app.js => my-ember-app/app.js
2424
const fixedCoverage = Object.keys(coverage).reduce((memo, filePath) => {
25-
const modulePath = path.relative(root, filePath);
25+
const modulePath = path.posix.relative(root, filePath);
2626
memo[modulePath] = Object.assign({}, coverage[filePath], { path: modulePath });
2727
return memo;
2828
}, {});

0 commit comments

Comments
 (0)