Skip to content

Commit b03c2e5

Browse files
authored
test(webpack): Sync new webpack configCases tests #7 (#9769)
test(webpack): Sync new webpack configCases tests: batch #7
1 parent 1a4564c commit b03c2e5

121 files changed

Lines changed: 923 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

tests/webpack-test/configCases/cache-dependencies/managed-items-unsafe-cache/node_modules/package/extra.js

Whitespace-only changes.

tests/webpack-test/configCases/cache-dependencies/managed-items-unsafe-cache/node_modules/package/index.js

Whitespace-only changes.

tests/webpack-test/configCases/cache-dependencies/managed-items-unsafe-cache/node_modules/package/package.json

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/webpack-test/configCases/cache-dependencies/managed-items/node_modules/package/extra.js

Whitespace-only changes.

tests/webpack-test/configCases/cache-dependencies/managed-items/node_modules/package/index.js

Whitespace-only changes.

tests/webpack-test/configCases/cache-dependencies/managed-items/node_modules/package/package.json

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/webpack-test/configCases/filename-template/split-chunks-filename/node_modules/test.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
import { A, B, C1, C2, C3, Err } from "./test";
2+
3+
var arr1 = A,
4+
cls = class extends Error {},
5+
cls1 = class {
6+
constructor(t) {
7+
if (!arr1.includes(t.version)) throw "invalid parquet version";
8+
}
9+
async *[Symbol.asyncIterator]() {
10+
yield "";
11+
}
12+
};
13+
14+
var arr2 = B;
15+
var cls2 = class extends Error {},
16+
cls3 = class {
17+
constructor(t) {
18+
if (!arr2.includes(t.version)) throw "invalid parquet version";
19+
}
20+
async *[Symbol.asyncIterator]() {
21+
yield "";
22+
}
23+
};
24+
25+
var arr3 = C1;
26+
var cls4 = class {
27+
constructor() {}
28+
},
29+
cls5 = class {
30+
constructor(t) {
31+
if (!arr3.includes(t.version)) throw "invalid parquet version";
32+
}
33+
async *[Symbol.asyncIterator]() {
34+
yield "";
35+
}
36+
};
37+
38+
var arr4 = C2;
39+
var cls6 = class {
40+
foo = [1, 2];
41+
},
42+
cls7 = class {
43+
constructor(t) {
44+
if (!arr4.includes(t.version)) throw "invalid parquet version";
45+
}
46+
async *[Symbol.asyncIterator]() {
47+
yield "";
48+
}
49+
};
50+
51+
var arr5 = C3;
52+
var cls8 = class extends Err {},
53+
cls9 = class {
54+
constructor(t) {}
55+
async *[Symbol.asyncIterator]() {
56+
yield "";
57+
}
58+
};
59+
60+
export { cls1, cls3, cls5, cls7, cls9 }
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
const createTestCases = require("../_helpers/createTestCases");
2+
3+
module.exports = createTestCases({
4+
nothing: {
5+
usedExports: [],
6+
expect: {
7+
"./test": ["A", "B", "C1", "C2"]
8+
}
9+
},
10+
all: {
11+
usedExports: ["cls1", "cls3", "cls5", "cls7", "cls9"],
12+
expect: {
13+
"./test": ["A", "B", "C1", "C2"]
14+
}
15+
}
16+
});
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import pure from './pure'
2+
3+
export default () => {
4+
pure()
5+
}

0 commit comments

Comments
 (0)