Skip to content

Commit

Permalink
test: add test case
Browse files Browse the repository at this point in the history
  • Loading branch information
liximomo authored and sokra committed Dec 18, 2019
1 parent 156a087 commit 1452d19
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/cases/side-effects/wrong-module-10146/index.js
@@ -0,0 +1,5 @@
import { A } from "./module";

it("should return the correct module", () => {
expect(A()).toEqual("A/index.js");
});
3 changes: 3 additions & 0 deletions test/cases/side-effects/wrong-module-10146/module/A/A.js
@@ -0,0 +1,3 @@
export default function hello() {
return 'A/A.js'
}
6 changes: 6 additions & 0 deletions test/cases/side-effects/wrong-module-10146/module/A/index.js
@@ -0,0 +1,6 @@

export { default as A } from "./A";

export default function hello() {
return 'A/index.js'
}
1 change: 1 addition & 0 deletions test/cases/side-effects/wrong-module-10146/module/index.js
@@ -0,0 +1 @@
export { default as A } from "./A";
@@ -0,0 +1,3 @@
{
"sideEffects": false
}

0 comments on commit 1452d19

Please sign in to comment.