Skip to content

Commit 3af0948

Browse files
committed
fix(tests): remove snapshot for static compilation
1 parent d195774 commit 3af0948

File tree

28 files changed

+0
-29
lines changed

28 files changed

+0
-29
lines changed

test/binCases/config-name/found-many/found-many.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,4 @@ test("found-many", () => {
2525
expect(summary).toContain("./index2.js");
2626
expect(summary).toContain("./index3.js");
2727
expect(stderr).toHaveLength(0);
28-
expect(summary).toMatchSnapshot();
2928
});

test/binCases/config-name/found-one/found-one.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,4 @@ test("found-one", () => {
2222
expect(summary).toEqual(expect.anything());
2323
expect(summary).toContain("./index2.js");
2424
expect(stderr).toHaveLength(0);
25-
expect(summary).toMatchSnapshot();
2625
});

test/binCases/config-name/not-found/not-found.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,4 @@ test("not-found", () => {
1010
expect(code).not.toBe(0);
1111
expect(summary).toHaveLength(0);
1212
expect(stderr).toContain("Configuration with name 'foo' was not found.");
13-
expect(summary).toMatchSnapshot();
1413
});

test/binCases/config-type/array/array.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,4 @@ test("array", () => {
2121
expect(summary).toContain("Child");
2222
expect(summary).toContain("entry-b.bundle.js");
2323
expect(stderr).toHaveLength(0);
24-
expect(summary).toMatchSnapshot();
2524
});

test/binCases/config-type/function-promise/function-promise.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,4 @@ test("function-promise", () => {
1818
expect(summary).toEqual(expect.anything());
1919
expect(summary).toContain("entry.bundle.js");
2020
expect(stderr).toHaveLength(0);
21-
expect(summary).toMatchSnapshot();
2221
});

test/binCases/config-type/function/function.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,4 @@ test("function", () => {
1818
expect(summary).toEqual(expect.anything());
1919
expect(summary).toContain("entry.bundle.js");
2020
expect(stderr).toHaveLength(0);
21-
expect(summary).toMatchSnapshot();
2221
});

test/binCases/config-type/object/object.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,4 @@ test("object", () => {
1818
expect(summary).toEqual(expect.anything());
1919
expect(summary).toContain("entry.bundle.js");
2020
expect(stderr).toHaveLength(0);
21-
expect(summary).toMatchSnapshot();
2221
});

test/binCases/config-type/promise/promise.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,4 @@ test("promise", () => {
1818
expect(summary).toEqual(expect.anything());
1919
expect(summary).toContain("entry.bundle.js");
2020
expect(stderr).toHaveLength(0);
21-
expect(summary).toMatchSnapshot();
2221
});

test/binCases/configFile/plugins-precedence/plugins-precedence.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,4 @@ test("plugins-precedence", () => {
2424
expect(summary).toEqual(expect.anything());
2525
expect(summary).toContain("ok.js");
2626
expect(stderr).toHaveLength(0);
27-
expect(summary).toMatchSnapshot();
2827
});

test/binCases/entry/cli-override/cli-override.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,4 @@ test("cli-override", () => {
2121
expect(summary).toContain("cliEntry.js");
2222
expect(summary).toContain("index.js");
2323
expect(stderr).toHaveLength(0);
24-
expect(summary).toMatchSnapshot();
2524
});

test/binCases/entry/display-entrypoints/display-entrypoints.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,4 @@ test("display-entrypoints", () => {
99

1010
expect(summary).not.toContain("Entrypoint");
1111
expect(stderr).toHaveLength(0);
12-
expect(summary).toMatchSnapshot();
1312
});

test/binCases/entry/multi-file/multi-file.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,4 @@ test("multi-file", () => {
2626
expect(summary).toContain("index.js");
2727
expect(summary).toContain("a.js");
2828
expect(stderr).toHaveLength(0);
29-
expect(summary).toMatchSnapshot();
3029
});

test/binCases/entry/named-entry/named-entry.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,4 @@ test("named-entry", () => {
2929
expect(summary).toContain("a.js");
3030
expect(summary).toContain("index.js");
3131
expect(stderr).toHaveLength(0);
32-
expect(summary).toMatchSnapshot();
3332
});

test/binCases/entry/non-hyphenated-args/non-hyphenated-args.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,4 @@ test("non-hyphenated-args", () => {
2222
expect(summary).toContain("main.js"); // non-hyphenated arg ./a.js should create chunk "main"
2323
expect(summary).toContain("a.js"); // a.js should be in chunk 0
2424
expect(stderr).toHaveLength(0);
25-
expect(summary).toMatchSnapshot();
2625
});

test/binCases/env/complex/comple.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,4 @@ test("complex", () => {
2929
expect(summary).toContain("./index.js");
3030
expect(summary).toContain("[built]");
3131
expect(stderr).toHaveLength(0);
32-
expect(summary).toMatchSnapshot();
3332
});

test/binCases/env/string/string.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,4 @@ test("string", () => {
2424
expect(summary).toEqual(expect.anything());
2525
expect(summary).toContain("Environment (--env)");
2626
expect(summary).toContain("null.js");
27-
expect(summary).toMatchSnapshot();
2827
});

test/binCases/errors/clean-webpack-options/clean-webpack-options.test.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,4 @@ test("clean-webpack-options", () => {
1616
expect(stderr).toContain("The base directory ");
1717

1818
expect(stderr.split("\n")).toHaveLength(4);
19-
expect(summary).toMatchSnapshot();
20-
expect(stderr).toMatchSnapshot();
2119
});

test/binCases/errors/parse/parse.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,4 @@ test("info-verbosity", () => {
1616
expect(summary).toContain("Module parse failed:");
1717

1818
expect(stderr).toHaveLength(0);
19-
expect(summary).toMatchSnapshot();
2019
});

test/binCases/mode/none/none.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,4 @@ test("none", () => {
1313
expect(summary).toContain("main.js");
1414
expect(summary).toContain("index.js");
1515
expect(stderr).toHaveLength(0);
16-
expect(summary).toMatchSnapshot();
1716
});

test/binCases/output/output-argument/output-argument.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,4 @@ test("output-argument", () => {
1717
expect(summary).toEqual(expect.anything());
1818
expect(summary).toContain("bundle.js");
1919
expect(summary).toContain("index.js");
20-
expect(summary).toMatchSnapshot();
2120
});

test/binCases/output/output-library-many/output-library-many.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,4 @@ test("output-library-many", () => {
2727
const outputPath = resolve(__dirname, "bin/main.js");
2828
const output = readFileSync(outputPath, "utf-8");
2929
expect(output).toContain("window.key1=window.key1||{},window.key1.key2=function");
30-
expect(summary).toMatchSnapshot();
3130
});

test/binCases/output/output-library-single/output-library-single.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,4 @@ test("output-library-single", () => {
2525
const outputPath = resolve(__dirname, "bin", "main.js");
2626
const output = readFileSync(outputPath, "utf-8");
2727
expect(output).toContain("window.key1=function");
28-
expect(summary).toMatchSnapshot();
2928
});

test/binCases/plugins/uglifyjsplugin-empty-args/uglifyjsplugin-empty-args.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,4 @@ test.skip("uglifyjsplugin-empty-args", () => {
2626
expect(summary).toContain("bytes"); // without uglifyjs it's multiple kBs
2727

2828
expect(stderr).toHaveLength(0);
29-
expect(summary).toMatchSnapshot();
3029
});

test/binCases/silent/silent-output/silent.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,4 @@ test("silent", () => {
1010
expect(code).toBe(0);
1111
expect(summary).toHaveLength(0);
1212
expect(stderr).toHaveLength(0);
13-
expect(summary).toMatchSnapshot();
1413
});

test/binCases/stats/build-delimiter/build-delimiter.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,4 @@ test("build-delimiter", () => {
1717
expect(code).toBe(0);
1818
expect(summary).toContain("success");
1919
expect(stderr).toHaveLength(0);
20-
expect(summary).toMatchSnapshot();
2120
});

test/binCases/stats/custom-preset/custom-preset.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,4 @@ test("custom-preset", () => {
2020
expect(stderr).toHaveLength(0);
2121
expect(code).toBe(0);
2222
expect(summary).toHaveLength(0);
23-
expect(summary).toMatchSnapshot();
2423
});

test/binCases/stats/multi-config/multi-config.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,4 @@ test("multi-config", () => {
1010
expect(code).toBe(0);
1111
expect(summary).toEqual(expect.anything());
1212
expect(stderr).toHaveLength(0);
13-
expect(summary).toMatchSnapshot();
1413
});

test/binCases/stats/single-config/single-config.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,5 @@ test("single-config", async done => {
2020
expect(summary).toContain("1 module");
2121

2222
expect(stderr).toHaveLength(0);
23-
expect(summary).toMatchSnapshot();
2423
done();
2524
});

0 commit comments

Comments
 (0)