Skip to content

Commit

Permalink
Ugly fix for in-package tests
Browse files Browse the repository at this point in the history
pnpm is a pain at not sharing versions between packages with differing
peer dependencies, resulting in packages utilizing >1 `inngest` package
internally.

This is exclusive to our monorepo here; in userland, the same package
will be shared.
  • Loading branch information
jpwilliams committed Dec 11, 2024
1 parent ec58bbd commit bafe07c
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions packages/middleware-validation/src/middleware.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ describe("validationMiddleware", () => {
{ id: "test" },
{ event: "test" },
() => "success"
),
) as any,
events: [{ name: "test" }],
});

Expand Down Expand Up @@ -49,7 +49,7 @@ describe("validationMiddleware", () => {
{ id: "test" },
{ event: "test" },
() => "success"
),
) as any,
events: [{ name: "test" }],
});

Expand Down Expand Up @@ -77,7 +77,7 @@ describe("validationMiddleware", () => {
{ id: "test" },
{ event: "test" },
() => "success"
),
) as any,
events: [{ name: "test", data: { message: "hello" } }],
});

Expand Down Expand Up @@ -105,7 +105,7 @@ describe("validationMiddleware", () => {
{ id: "test" },
{ event: "test" },
() => "success"
),
) as any,
events: [{ name: "test", data: { message: 123 } }],
});

Expand Down Expand Up @@ -139,7 +139,7 @@ describe("validationMiddleware", () => {
{ id: "test" },
{ event: "b" },
() => "success"
),
) as any,
events: [{ name: "inngest/function.invoked", data: { b: true } }],
});

Expand All @@ -162,7 +162,7 @@ describe("validationMiddleware", () => {
{ id: "test" },
{ event: "test" },
() => "success"
),
) as any,
events: [{ name: "test" }],
});

Expand Down Expand Up @@ -190,7 +190,7 @@ describe("validationMiddleware", () => {
{ id: "test" },
{ event: "test" },
() => "success"
),
) as any,
events: [{ name: "test" }],
});

Expand Down Expand Up @@ -218,7 +218,7 @@ describe("validationMiddleware", () => {
{ id: "test" },
{ event: "test" },
() => "success"
),
) as any,
events: [{ name: "test", data: { message: "hello" } }],
});

Expand Down Expand Up @@ -246,7 +246,7 @@ describe("validationMiddleware", () => {
{ id: "test" },
{ event: "test" },
() => "success"
),
) as any,
events: [
{ name: "inngest/function.invoked", data: { message: "hello" } },
],
Expand Down Expand Up @@ -278,7 +278,7 @@ describe("validationMiddleware", () => {
{ id: "test" },
{ event: "test" },
() => "success"
),
) as any,
events: [{ name: "test", data: { message: "hello" } }],
});

Expand Down Expand Up @@ -308,7 +308,7 @@ describe("validationMiddleware", () => {
{ id: "test" },
{ event: "test" },
() => "success"
),
) as any,
events: [{ name: "test", data: { message: { content: "hello" } } }],
});

Expand Down Expand Up @@ -336,7 +336,7 @@ describe("validationMiddleware", () => {
{ id: "test" },
{ event: "test" },
() => "success"
),
) as any,
events: [
{ name: "test", data: { message: "hello" } },
{ name: "test", data: { message: 123 } },
Expand Down Expand Up @@ -377,7 +377,7 @@ describe("validationMiddleware", () => {
name: "test",
data: { message: 123 as unknown as string },
})
),
) as any,
events: [{ name: "test", data: { message: "hello" } }],
});

Expand Down Expand Up @@ -450,7 +450,7 @@ describe("validationMiddleware", () => {
);

const t = new InngestTestEngine({
function: fn,
function: fn as any,
events: [{ name: "test", data: { message: "hello" } }],
});

Expand Down Expand Up @@ -495,7 +495,7 @@ describe("validationMiddleware", () => {
);

const t = new InngestTestEngine({
function: fn,
function: fn as any,
events: [{ name: "test", data: { message: "hello" } }],
});

Expand Down

0 comments on commit bafe07c

Please sign in to comment.