Skip to content

Commit

Permalink
test: use --disable-interpret without transpilation
Browse files Browse the repository at this point in the history
  • Loading branch information
shuta13 committed Jul 17, 2022
1 parent 46eb622 commit 771f7a3
Showing 1 changed file with 8 additions and 0 deletions.
Expand Up @@ -21,4 +21,12 @@ describe("webpack cli", () => {
expect(exitCode).toBe(0);
expect(existsSync(resolve(__dirname, "dist/foo.bundle.js"))).toBeTruthy();
});

it("should log error without transpilation", async () => {
const { exitCode, stderr, stdout } = await run(__dirname, ["--disable-interpret"]);

expect(exitCode).toBe(2);
expect(stderr).toContain(`Failed to load '${resolve(__dirname, "webpack.config.ts")}' config`);
expect(stdout).toBeFalsy();
});
});

0 comments on commit 771f7a3

Please sign in to comment.