Skip to content

Commit

Permalink
fix(tests): remove snapshot for static compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
evenstensberg committed Mar 10, 2019
1 parent d195774 commit 3af0948
Show file tree
Hide file tree
Showing 28 changed files with 0 additions and 29 deletions.
1 change: 0 additions & 1 deletion test/binCases/config-name/found-many/found-many.test.js
Expand Up @@ -25,5 +25,4 @@ test("found-many", () => {
expect(summary).toContain("./index2.js");
expect(summary).toContain("./index3.js");
expect(stderr).toHaveLength(0);
expect(summary).toMatchSnapshot();
});
1 change: 0 additions & 1 deletion test/binCases/config-name/found-one/found-one.test.js
Expand Up @@ -22,5 +22,4 @@ test("found-one", () => {
expect(summary).toEqual(expect.anything());
expect(summary).toContain("./index2.js");
expect(stderr).toHaveLength(0);
expect(summary).toMatchSnapshot();
});
1 change: 0 additions & 1 deletion test/binCases/config-name/not-found/not-found.test.js
Expand Up @@ -10,5 +10,4 @@ test("not-found", () => {
expect(code).not.toBe(0);
expect(summary).toHaveLength(0);
expect(stderr).toContain("Configuration with name 'foo' was not found.");
expect(summary).toMatchSnapshot();
});
1 change: 0 additions & 1 deletion test/binCases/config-type/array/array.test.js
Expand Up @@ -21,5 +21,4 @@ test("array", () => {
expect(summary).toContain("Child");
expect(summary).toContain("entry-b.bundle.js");
expect(stderr).toHaveLength(0);
expect(summary).toMatchSnapshot();
});
Expand Up @@ -18,5 +18,4 @@ test("function-promise", () => {
expect(summary).toEqual(expect.anything());
expect(summary).toContain("entry.bundle.js");
expect(stderr).toHaveLength(0);
expect(summary).toMatchSnapshot();
});
1 change: 0 additions & 1 deletion test/binCases/config-type/function/function.test.js
Expand Up @@ -18,5 +18,4 @@ test("function", () => {
expect(summary).toEqual(expect.anything());
expect(summary).toContain("entry.bundle.js");
expect(stderr).toHaveLength(0);
expect(summary).toMatchSnapshot();
});
1 change: 0 additions & 1 deletion test/binCases/config-type/object/object.test.js
Expand Up @@ -18,5 +18,4 @@ test("object", () => {
expect(summary).toEqual(expect.anything());
expect(summary).toContain("entry.bundle.js");
expect(stderr).toHaveLength(0);
expect(summary).toMatchSnapshot();
});
1 change: 0 additions & 1 deletion test/binCases/config-type/promise/promise.test.js
Expand Up @@ -18,5 +18,4 @@ test("promise", () => {
expect(summary).toEqual(expect.anything());
expect(summary).toContain("entry.bundle.js");
expect(stderr).toHaveLength(0);
expect(summary).toMatchSnapshot();
});
Expand Up @@ -24,5 +24,4 @@ test("plugins-precedence", () => {
expect(summary).toEqual(expect.anything());
expect(summary).toContain("ok.js");
expect(stderr).toHaveLength(0);
expect(summary).toMatchSnapshot();
});
1 change: 0 additions & 1 deletion test/binCases/entry/cli-override/cli-override.test.js
Expand Up @@ -21,5 +21,4 @@ test("cli-override", () => {
expect(summary).toContain("cliEntry.js");
expect(summary).toContain("index.js");
expect(stderr).toHaveLength(0);
expect(summary).toMatchSnapshot();
});
Expand Up @@ -9,5 +9,4 @@ test("display-entrypoints", () => {

expect(summary).not.toContain("Entrypoint");
expect(stderr).toHaveLength(0);
expect(summary).toMatchSnapshot();
});
1 change: 0 additions & 1 deletion test/binCases/entry/multi-file/multi-file.test.js
Expand Up @@ -26,5 +26,4 @@ test("multi-file", () => {
expect(summary).toContain("index.js");
expect(summary).toContain("a.js");
expect(stderr).toHaveLength(0);
expect(summary).toMatchSnapshot();
});
1 change: 0 additions & 1 deletion test/binCases/entry/named-entry/named-entry.test.js
Expand Up @@ -29,5 +29,4 @@ test("named-entry", () => {
expect(summary).toContain("a.js");
expect(summary).toContain("index.js");
expect(stderr).toHaveLength(0);
expect(summary).toMatchSnapshot();
});
Expand Up @@ -22,5 +22,4 @@ test("non-hyphenated-args", () => {
expect(summary).toContain("main.js"); // non-hyphenated arg ./a.js should create chunk "main"
expect(summary).toContain("a.js"); // a.js should be in chunk 0
expect(stderr).toHaveLength(0);
expect(summary).toMatchSnapshot();
});
1 change: 0 additions & 1 deletion test/binCases/env/complex/comple.test.js
Expand Up @@ -29,5 +29,4 @@ test("complex", () => {
expect(summary).toContain("./index.js");
expect(summary).toContain("[built]");
expect(stderr).toHaveLength(0);
expect(summary).toMatchSnapshot();
});
1 change: 0 additions & 1 deletion test/binCases/env/string/string.test.js
Expand Up @@ -24,5 +24,4 @@ test("string", () => {
expect(summary).toEqual(expect.anything());
expect(summary).toContain("Environment (--env)");
expect(summary).toContain("null.js");
expect(summary).toMatchSnapshot();
});
Expand Up @@ -16,6 +16,4 @@ test("clean-webpack-options", () => {
expect(stderr).toContain("The base directory ");

expect(stderr.split("\n")).toHaveLength(4);
expect(summary).toMatchSnapshot();
expect(stderr).toMatchSnapshot();
});
1 change: 0 additions & 1 deletion test/binCases/errors/parse/parse.test.js
Expand Up @@ -16,5 +16,4 @@ test("info-verbosity", () => {
expect(summary).toContain("Module parse failed:");

expect(stderr).toHaveLength(0);
expect(summary).toMatchSnapshot();
});
1 change: 0 additions & 1 deletion test/binCases/mode/none/none.test.js
Expand Up @@ -13,5 +13,4 @@ test("none", () => {
expect(summary).toContain("main.js");
expect(summary).toContain("index.js");
expect(stderr).toHaveLength(0);
expect(summary).toMatchSnapshot();
});
Expand Up @@ -17,5 +17,4 @@ test("output-argument", () => {
expect(summary).toEqual(expect.anything());
expect(summary).toContain("bundle.js");
expect(summary).toContain("index.js");
expect(summary).toMatchSnapshot();
});
Expand Up @@ -27,5 +27,4 @@ test("output-library-many", () => {
const outputPath = resolve(__dirname, "bin/main.js");
const output = readFileSync(outputPath, "utf-8");
expect(output).toContain("window.key1=window.key1||{},window.key1.key2=function");
expect(summary).toMatchSnapshot();
});
Expand Up @@ -25,5 +25,4 @@ test("output-library-single", () => {
const outputPath = resolve(__dirname, "bin", "main.js");
const output = readFileSync(outputPath, "utf-8");
expect(output).toContain("window.key1=function");
expect(summary).toMatchSnapshot();
});
Expand Up @@ -26,5 +26,4 @@ test.skip("uglifyjsplugin-empty-args", () => {
expect(summary).toContain("bytes"); // without uglifyjs it's multiple kBs

expect(stderr).toHaveLength(0);
expect(summary).toMatchSnapshot();
});
1 change: 0 additions & 1 deletion test/binCases/silent/silent-output/silent.test.js
Expand Up @@ -10,5 +10,4 @@ test("silent", () => {
expect(code).toBe(0);
expect(summary).toHaveLength(0);
expect(stderr).toHaveLength(0);
expect(summary).toMatchSnapshot();
});
Expand Up @@ -17,5 +17,4 @@ test("build-delimiter", () => {
expect(code).toBe(0);
expect(summary).toContain("success");
expect(stderr).toHaveLength(0);
expect(summary).toMatchSnapshot();
});
1 change: 0 additions & 1 deletion test/binCases/stats/custom-preset/custom-preset.test.js
Expand Up @@ -20,5 +20,4 @@ test("custom-preset", () => {
expect(stderr).toHaveLength(0);
expect(code).toBe(0);
expect(summary).toHaveLength(0);
expect(summary).toMatchSnapshot();
});
1 change: 0 additions & 1 deletion test/binCases/stats/multi-config/multi-config.test.js
Expand Up @@ -10,5 +10,4 @@ test("multi-config", () => {
expect(code).toBe(0);
expect(summary).toEqual(expect.anything());
expect(stderr).toHaveLength(0);
expect(summary).toMatchSnapshot();
});
1 change: 0 additions & 1 deletion test/binCases/stats/single-config/single-config.test.js
Expand Up @@ -20,6 +20,5 @@ test("single-config", async done => {
expect(summary).toContain("1 module");

expect(stderr).toHaveLength(0);
expect(summary).toMatchSnapshot();
done();
});

0 comments on commit 3af0948

Please sign in to comment.