Skip to content

Commit

Permalink
test: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Aug 4, 2021
1 parent 7914fdb commit 82ad0bb
Showing 1 changed file with 13 additions and 3 deletions.
@@ -1,15 +1,20 @@
"use strict";

const { resolve } = require("path");
const { run } = require("../../../utils/test-utils");
const { run, isWebpack5 } = require("../../../utils/test-utils");

describe("top multi compiler options", () => {
it("should work without provided configuration", async () => {
const { exitCode, stderr, stdout } = await run(__dirname);

expect(exitCode).toBe(0);
expect(stderr).toBeFalsy();
expect(stdout).toContain("Done build0\nDone build1\nDone build2\nDone build3");

if (isWebpack5) {
expect(stdout).toContain("Done build0\nDone build1\nDone build2\nDone build3");
} else {
expect(stdout).toBeTruthy();
}
});

it("should work with provided configuration", async () => {
Expand All @@ -20,6 +25,11 @@ describe("top multi compiler options", () => {

expect(exitCode).toBe(0);
expect(stderr).toBeFalsy();
expect(stdout).toContain("Done build0\nDone build1\nDone build2\nDone build3");

if (isWebpack5) {
expect(stdout).toContain("Done build0\nDone build1\nDone build2\nDone build3");
} else {
expect(stdout).toBeTruthy();
}
});
});

0 comments on commit 82ad0bb

Please sign in to comment.