diff --git a/__tests__/index.test.ts b/__tests__/index.test.ts index 2c276dd..f2d1a44 100644 --- a/__tests__/index.test.ts +++ b/__tests__/index.test.ts @@ -8,9 +8,8 @@ import * as main from "../src/main"; const runMock = jest.spyOn(main, "run").mockImplementation(); describe("index", () => { - it("calls run when imported", () => { - // eslint-disable-next-line @typescript-eslint/no-require-imports - require("../src/index"); + it("calls run when imported", async () => { + await import("../src/index"); expect(runMock).toHaveBeenCalled(); });