Skip to content

Commit

Permalink
fix 18
Browse files Browse the repository at this point in the history
  • Loading branch information
adamraine committed Jul 19, 2023
1 parent f8a9b5d commit f3a96aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/test/config/config-helpers-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ describe('.resolveGathererToDefn', () => {
it('throws but not for missing gatherer when it has a node dependency error', async () => {
const resultPromise =
resolveGathererToDefn('../fixtures/invalid-gatherers/require-error.js', [], moduleDir);
await expect(resultPromise).rejects.toThrow(/Cannot find module/);
await expect(resultPromise).rejects.toThrow(/no such file or directory/);
});
});

Expand Down Expand Up @@ -502,7 +502,7 @@ describe('.resolveAuditsToDefns', () => {
const resultPromise = resolveAuditsToDefns([
'../fixtures/invalid-audits/require-error.js',
], moduleDir);
await expect(resultPromise).rejects.toThrow(/Cannot find module/);
await expect(resultPromise).rejects.toThrow(/no such file or directory/);
});
});

Expand Down

0 comments on commit f3a96aa

Please sign in to comment.