Skip to content

Commit

Permalink
tests: when a module test fails because a dependency wasn't found, ig…
Browse files Browse the repository at this point in the history
…nore the error
  • Loading branch information
rwaldron committed May 11, 2021
1 parent 4445fed commit 1224cee
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion test/runify.js
Original file line number Diff line number Diff line change
Expand Up @@ -879,8 +879,23 @@ hosts.forEach(function (record) {
} else {
let stdout = result.stdout.trim();
expect(result.error).toBe(null);
expect(result.stderr).toBeFalsy();
expect(stdout).toBe(expectedStdout);

if (result.stderr) {
console.log(`
This test:
${JSON.stringify(record, null, 2)}
Produced an unexpected error:
${result.stderr}
If the error is regarding a missing dependency, then
it's possible that it can safely be ignored.
`);
}
}
})
);
Expand Down

0 comments on commit 1224cee

Please sign in to comment.