Skip to content

Commit

Permalink
feat: remove require
Browse files Browse the repository at this point in the history
  • Loading branch information
bxb100 committed Nov 28, 2024
1 parent 00383a5 commit ec72f88
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions __tests__/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
Expand Down

0 comments on commit ec72f88

Please sign in to comment.