Skip to content

Commit 6592956

Browse files
committed
add test case
1 parent 20f5290 commit 6592956

3 files changed

Lines changed: 12 additions & 0 deletions

File tree

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
it("should generate a chunk for a full require dependencies in require.ensure", done => {
2+
require.ensure([], () => {
3+
expect(require("./module").property).toBe(42);
4+
expect(__STATS__.chunks.length).toBe(2);
5+
done();
6+
});
7+
});
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
exports.property = 42;
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/** @type {import("../../../../").Configuration} */
2+
module.exports = {
3+
mode: "production"
4+
};

0 commit comments

Comments
 (0)