Skip to content

Commit

Permalink
Fix silly test type
Browse files Browse the repository at this point in the history
  • Loading branch information
jpwilliams committed Dec 11, 2024
1 parent e8c02dc commit 1e57bc9
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions packages/inngest/src/components/execution/als.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ describe("getAsyncCtx", () => {

const inngest = new Inngest({ id: "test" });

let resolve: (value: AsyncContext | undefined) => void;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
let resolve: (value: any) => void | PromiseLike<void>;
const externalP = new Promise<AsyncContext | undefined>((r) => {
resolve = r;
});
Expand All @@ -95,7 +96,8 @@ describe("getAsyncCtx", () => {
}
);

const t = new InngestTestEngine({ function: fn });
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-explicit-any
const t = new InngestTestEngine({ function: fn as any });

const { result } = await t.execute();

Expand All @@ -117,7 +119,8 @@ describe("getAsyncCtx", () => {

const inngest = new Inngest({ id: "test" });

let resolve: (value: AsyncContext | undefined) => void;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
let resolve: (value: any) => void | PromiseLike<void>;
const externalP = new Promise<AsyncContext | undefined>((r) => {
resolve = r;
});
Expand All @@ -138,7 +141,8 @@ describe("getAsyncCtx", () => {
}
);

const t = new InngestTestEngine({ function: fn });
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-explicit-any
const t = new InngestTestEngine({ function: fn as any });

const { result } = await t.execute();

Expand Down

0 comments on commit 1e57bc9

Please sign in to comment.