Skip to content

Commit

Permalink
Add testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
CPunisher committed Jul 8, 2024
1 parent 08aa705 commit d785e11
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
function f(__webpack_require__) {
require('./b.js');
return __webpack_require__ + 1
}

module.exports = f;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = "b"
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
it("compatibility plugin", async () => {
const f = require("./a.js");
expect(f(1)).toBe(2);
});

0 comments on commit d785e11

Please sign in to comment.