"use strict"; const { cleanStderr, run } = require("../../../utils/test-utils"); describe("Zero Config tests", () => { it("runs when config and entry are both absent", async () => { const { exitCode, stderr, stdout } = await run(__dirname, []); expect(exitCode).toBe(1); expect(cleanStderr(stderr)).toBeFalsy(); // Entry file is absent, should log the Error from the compiler expect(stdout).toContain("Error: Can't resolve './src'"); }); });