@@ -18,18 +18,6 @@ test('redirect.js default', async () => {
1818 contents . cjs0 ! ,
1919 / c j s \/ i n d e x \. c j s / ,
2020 ) ;
21- const { content : notResolvedContent } = queryContent (
22- contents . esm0 ! ,
23- / e s m \/ n o t - r e s o l v e d \. j s / ,
24- ) ;
25-
26- expect ( notResolvedContent ) . toMatchInlineSnapshot ( `
27- "export * from "not_resolved";
28- export * from "./foo.node";
29- export * from "./foo.node.js";
30- export * from "./not_resolved_file";
31- "
32- ` ) ;
3321
3422 expect ( indexContent ) . toMatchInlineSnapshot ( `
3523 "import lodash from "lodash";
@@ -63,19 +51,6 @@ test('redirect.js.path false', async () => {
6351 / e s m \/ i n d e x \. j s / ,
6452 ) ;
6553
66- const { content : notResolvedContent } = queryContent (
67- contents . esm1 ! ,
68- / e s m \/ n o t - r e s o l v e d \. j s / ,
69- ) ;
70-
71- expect ( notResolvedContent ) . toMatchInlineSnapshot ( `
72- "export * from "not_resolved";
73- export * from "./foo.node";
74- export * from "./foo.node.js";
75- export * from "./not_resolved_file";
76- "
77- ` ) ;
78-
7954 expect ( indexContent ) . toMatchInlineSnapshot ( `
8055 "import lodash from "lodash";
8156 import lodash_merge from "lodash.merge";
@@ -108,19 +83,6 @@ test('redirect.js.path with user override externals', async () => {
10883 / c j s \/ i n d e x \. c j s / ,
10984 ) ;
11085
111- const { content : notResolvedContent } = queryContent (
112- contents . esm2 ! ,
113- / e s m \/ n o t - r e s o l v e d \. j s / ,
114- ) ;
115-
116- expect ( notResolvedContent ) . toMatchInlineSnapshot ( `
117- "export * from "not_resolved";
118- export * from "./foo.node";
119- export * from "./foo.node.js";
120- export * from "./not_resolved_file";
121- "
122- ` ) ;
123-
12486 expect ( indexContent ) . toMatchInlineSnapshot ( `
12587 "import lodash from "lodash";
12688 import lodash_merge from "lodash.merge";
@@ -161,19 +123,6 @@ test('redirect.js.path with user override alias', async () => {
161123 / c j s \/ i n d e x \. c j s / ,
162124 ) ;
163125
164- const { content : notResolvedContent } = queryContent (
165- contents . esm3 ! ,
166- / e s m \/ n o t - r e s o l v e d \. j s / ,
167- ) ;
168-
169- expect ( notResolvedContent ) . toMatchInlineSnapshot ( `
170- "export * from "not_resolved";
171- export * from "./foo.node";
172- export * from "./foo.node.js";
173- export * from "./not_resolved_file";
174- "
175- ` ) ;
176-
177126 expect ( indexContent ) . toMatchInlineSnapshot ( `
178127 "import lodash from "lodash";
179128 import lodash_merge from "lodash.merge";
@@ -209,18 +158,6 @@ test('redirect.js.extension: false', async () => {
209158 contents . esm4 ! ,
210159 / e s m \/ i n d e x \. j s / ,
211160 ) ;
212- const { content : notResolvedContent } = queryContent (
213- contents . esm4 ! ,
214- / e s m \/ n o t - r e s o l v e d \. j s / ,
215- ) ;
216-
217- expect ( notResolvedContent ) . toMatchInlineSnapshot ( `
218- "export * from "not_resolved";
219- export * from "./foo.node";
220- export * from "./foo.node.js";
221- export * from "./not_resolved_file";
222- "
223- ` ) ;
224161
225162 expect ( indexContent ) . toMatchInlineSnapshot ( `
226163 "import lodash from "lodash";
0 commit comments