Skip to content

Commit db1fdf9

Browse files
committed
test: fix node defaultLoad error message check
1 parent 9346c54 commit db1fdf9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/esm-loader.spec.ts

Lines changed: 1 addition & 1 deletion
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 default(Load|Resolve)/);
9999
});
100100

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

0 commit comments

Comments
 (0)