Skip to content

Commit 6614e1b

Browse files
committed
fix a bit of noise in test failures, also addressed by #2009, sneaking it in here to quiet the CI on other PRs
1 parent f3a3aec commit 6614e1b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/test/esm-loader.spec.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,9 @@ test.suite('esm', (test) => {
9595
});
9696
expect(r.err).not.toBe(null);
9797
// expect error from node's default resolver
98-
expect(r.stderr).toMatch(/Error \[ERR_UNSUPPORTED_ESM_URL_SCHEME\]:.*(?:\n.*){0,2}\n *at defaultResolve/);
98+
expect(r.stderr).toMatch(
99+
/Error \[ERR_UNSUPPORTED_ESM_URL_SCHEME\]:.*(?:\n.*){0,2}\n *at (defaultResolve|defaultLoad)/
100+
);
99101
});
100102

101103
test('should bypass import cache when changing search params', async () => {

0 commit comments

Comments
 (0)