@@ -64,7 +64,7 @@ describe("transform", () => {
64
64
expect ( removeWhitespace ( result . code ) ) . toStrictEqual ( expected )
65
65
} )
66
66
67
- it ( "should transform the loader export when it's re-exported from another file" , ( ) => {
67
+ it ( "should transform the loader export when it's re-exported from another file and remove empty export declaration " , ( ) => {
68
68
const result = injectContext (
69
69
`
70
70
export { loader } from "./loader.js";
@@ -76,7 +76,6 @@ describe("transform", () => {
76
76
import { withLoaderContextWrapper as _withLoaderContextWrapper } from "react-router-devtools/context";
77
77
import { loader as _loader } from "./loader.js";
78
78
export const loader = _withLoaderContextWrapper(_loader, "test");
79
- export {} from "./loader.js";
80
79
` )
81
80
expect ( removeWhitespace ( result . code ) ) . toStrictEqual ( expected )
82
81
} )
@@ -196,7 +195,7 @@ describe("transform", () => {
196
195
expect ( removeWhitespace ( result . code ) ) . toStrictEqual ( expected )
197
196
} )
198
197
199
- it ( "should transform the client loader export when it's re-exported from another file" , ( ) => {
198
+ it ( "should transform the client loader export when it's re-exported from another file and remove empty export declaration " , ( ) => {
200
199
const result = injectContext (
201
200
`
202
201
export { clientLoader } from "./clientLoader.js";
@@ -208,7 +207,6 @@ describe("transform", () => {
208
207
import { withClientLoaderContextWrapper as _withClientLoaderContextWrapper } from "react-router-devtools/context";
209
208
import { clientLoader as _clientLoader } from "./clientLoader.js";
210
209
export const clientLoader = _withClientLoaderContextWrapper(_clientLoader, "test");
211
- export {} from "./clientLoader.js";
212
210
` )
213
211
expect ( removeWhitespace ( result . code ) ) . toStrictEqual ( expected )
214
212
} )
@@ -274,7 +272,7 @@ describe("transform", () => {
274
272
expect ( removeWhitespace ( result . code ) ) . toStrictEqual ( expected )
275
273
} )
276
274
277
- it ( "should transform the action export when it's re-exported from another file" , ( ) => {
275
+ it ( "should transform the action export when it's re-exported from another file and remove empty export declaration " , ( ) => {
278
276
const result = injectContext (
279
277
`
280
278
export { action } from "./action.js";
@@ -286,7 +284,6 @@ describe("transform", () => {
286
284
import { withActionContextWrapper as _withActionContextWrapper } from "react-router-devtools/context";
287
285
import { action as _action } from "./action.js";
288
286
export const action = _withActionContextWrapper(_action, "test");
289
- export {} from "./action.js";
290
287
` )
291
288
expect ( removeWhitespace ( result . code ) ) . toStrictEqual ( expected )
292
289
} )
@@ -406,7 +403,7 @@ describe("transform", () => {
406
403
expect ( removeWhitespace ( result . code ) ) . toStrictEqual ( expected )
407
404
} )
408
405
409
- it ( "should transform the clientAction export when it's re-exported from another file" , ( ) => {
406
+ it ( "should transform the clientAction export when it's re-exported from another file and remove empty export declaration " , ( ) => {
410
407
const result = injectContext (
411
408
`
412
409
export { clientAction } from "./clientAction.js";
@@ -418,7 +415,6 @@ describe("transform", () => {
418
415
import { withClientActionContextWrapper as _withClientActionContextWrapper } from "react-router-devtools/context";
419
416
import { clientAction as _clientAction } from "./clientAction.js";
420
417
export const clientAction = _withClientActionContextWrapper(_clientAction, "test");
421
- export {} from "./clientAction.js";
422
418
` )
423
419
expect ( removeWhitespace ( result . code ) ) . toStrictEqual ( expected )
424
420
} )
0 commit comments