Skip to content

Commit 1874611

Browse files
committed
fix: decode URL in processedMessages for correct file path resolution
Previously when the containing folder had spaces in folder name tests broke.
1 parent 487faac commit 1874611

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/processErrorMessages.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const { normalizeQuotationMarks } = require('./util.js');
66
const processedMessages = (errors, config) => {
77
return errors.map(message => {
88
if (message.url) {
9-
message.file = path.relative('.', message.url.replace(path.sep === '\\' ? 'file:/' : 'file:', ''));
9+
message.file = path.relative('.', decodeURIComponent(message.url.replace(path.sep === '\\' ? 'file:/' : 'file:', '')));
1010
}
1111

1212
if (config.absoluteFilePathsForReporter) {

0 commit comments

Comments
 (0)