Skip to content

Commit 09e3213

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 09e3213

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/esm-loader.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ 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(/Error \[ERR_UNSUPPORTED_ESM_URL_SCHEME\]:.*(?:\n.*){0,2}\n *at (defaultResolve|defaultLoad)/);
9999
});
100100

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

0 commit comments

Comments
 (0)