@@ -64,7 +64,7 @@ describe("transform", () => {
6464 expect ( removeWhitespace ( result . code ) ) . toStrictEqual ( expected )
6565 } )
6666
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 " , ( ) => {
6868 const result = injectContext (
6969 `
7070 export { loader } from "./loader.js";
@@ -76,7 +76,6 @@ describe("transform", () => {
7676 import { withLoaderContextWrapper as _withLoaderContextWrapper } from "react-router-devtools/context";
7777 import { loader as _loader } from "./loader.js";
7878 export const loader = _withLoaderContextWrapper(_loader, "test");
79- export {} from "./loader.js";
8079 ` )
8180 expect ( removeWhitespace ( result . code ) ) . toStrictEqual ( expected )
8281 } )
@@ -196,7 +195,7 @@ describe("transform", () => {
196195 expect ( removeWhitespace ( result . code ) ) . toStrictEqual ( expected )
197196 } )
198197
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 " , ( ) => {
200199 const result = injectContext (
201200 `
202201 export { clientLoader } from "./clientLoader.js";
@@ -208,7 +207,6 @@ describe("transform", () => {
208207 import { withClientLoaderContextWrapper as _withClientLoaderContextWrapper } from "react-router-devtools/context";
209208 import { clientLoader as _clientLoader } from "./clientLoader.js";
210209 export const clientLoader = _withClientLoaderContextWrapper(_clientLoader, "test");
211- export {} from "./clientLoader.js";
212210 ` )
213211 expect ( removeWhitespace ( result . code ) ) . toStrictEqual ( expected )
214212 } )
@@ -274,7 +272,7 @@ describe("transform", () => {
274272 expect ( removeWhitespace ( result . code ) ) . toStrictEqual ( expected )
275273 } )
276274
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 " , ( ) => {
278276 const result = injectContext (
279277 `
280278 export { action } from "./action.js";
@@ -286,7 +284,6 @@ describe("transform", () => {
286284 import { withActionContextWrapper as _withActionContextWrapper } from "react-router-devtools/context";
287285 import { action as _action } from "./action.js";
288286 export const action = _withActionContextWrapper(_action, "test");
289- export {} from "./action.js";
290287 ` )
291288 expect ( removeWhitespace ( result . code ) ) . toStrictEqual ( expected )
292289 } )
@@ -406,7 +403,7 @@ describe("transform", () => {
406403 expect ( removeWhitespace ( result . code ) ) . toStrictEqual ( expected )
407404 } )
408405
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 " , ( ) => {
410407 const result = injectContext (
411408 `
412409 export { clientAction } from "./clientAction.js";
@@ -418,7 +415,6 @@ describe("transform", () => {
418415 import { withClientActionContextWrapper as _withClientActionContextWrapper } from "react-router-devtools/context";
419416 import { clientAction as _clientAction } from "./clientAction.js";
420417 export const clientAction = _withClientActionContextWrapper(_clientAction, "test");
421- export {} from "./clientAction.js";
422418 ` )
423419 expect ( removeWhitespace ( result . code ) ) . toStrictEqual ( expected )
424420 } )
0 commit comments