Skip to content

Commit

Permalink
fix: use path.resolve for custom reporters to be compatible with yarn…
Browse files Browse the repository at this point in the history
  • Loading branch information
massimeddu-sonic committed Dec 3, 2021
1 parent 2fada98 commit b2ef11a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/server/lib/reporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ class Reporter {
// that is local (./custom-reporter.js)
// or one installed by the user through npm
try {
p = path.resolve(projectRoot, reporterName)
const p = require.resolve(reporterName, { paths: [projectRoot] })

// try local
debug('trying to require local reporter with path:', p)
Expand Down

0 comments on commit b2ef11a

Please sign in to comment.