diff --git a/nx.json b/nx.json index a0c551cf..975432a8 100644 --- a/nx.json +++ b/nx.json @@ -39,7 +39,7 @@ "libsDir": "packages" }, "useDaemonProcess": false, - "nxCloudAccessToken": "OGY4NDE3OTItYWViMS00YWM0LTk4ODgtYmI2ZWNhYjY1OGMyfHJlYWQtb25seQ==", + "neverConnectToCloud": true, "useInferencePlugins": false, "defaultBase": "master" } diff --git a/packages/trpc/src/procedures/labels/createLabel.spec.ts b/packages/trpc/src/procedures/labels/createLabel.spec.ts index 99d91285..72d1888c 100644 --- a/packages/trpc/src/procedures/labels/createLabel.spec.ts +++ b/packages/trpc/src/procedures/labels/createLabel.spec.ts @@ -6,14 +6,15 @@ import type { AppRouter } from "../../index"; describe("create Label", () => { let user: User; + let user2: User; let trpc: CreateTRPCProxyClient; beforeAll(async () => { - ({ user, trpc } = await trpcSetup()); + ({ user, user2, trpc } = await trpcSetup()); }); afterAll(() => { - return tearDown(user.id); + return tearDown(user.id, user2.id); }); describe("success", () => { diff --git a/packages/trpc/src/procedures/labels/deleteLabel.spec.ts b/packages/trpc/src/procedures/labels/deleteLabel.spec.ts index 956a0673..f732a851 100644 --- a/packages/trpc/src/procedures/labels/deleteLabel.spec.ts +++ b/packages/trpc/src/procedures/labels/deleteLabel.spec.ts @@ -8,14 +8,15 @@ import { faker } from "@faker-js/faker"; describe("deleteLabel", () => { let user: User; + let user2: User; let trpc: CreateTRPCProxyClient; beforeAll(async () => { - ({ user, trpc } = await trpcSetup()); + ({ user, user2, trpc } = await trpcSetup()); }); afterAll(() => { - return tearDown(user.id); + return tearDown(user.id, user2.id); }); describe("success", () => { diff --git a/packages/trpc/src/procedures/labels/getLabels.spec.ts b/packages/trpc/src/procedures/labels/getLabels.spec.ts index ec8ce0c3..0051e23b 100644 --- a/packages/trpc/src/procedures/labels/getLabels.spec.ts +++ b/packages/trpc/src/procedures/labels/getLabels.spec.ts @@ -6,14 +6,15 @@ import type { AppRouter } from "../../index"; describe("getLabels", () => { let user: User; + let user2: User; let trpc: CreateTRPCProxyClient; beforeEach(async () => { - ({ user, trpc } = await trpcSetup()); + ({ user, user2, trpc } = await trpcSetup()); }); afterEach(() => { - return tearDown(user.id); + return tearDown(user.id, user2.id); }); describe("success", () => { diff --git a/packages/trpc/src/procedures/labels/getLabelsByUserId.spec.ts b/packages/trpc/src/procedures/labels/getLabelsByUserId.spec.ts index 9460be39..898273a0 100644 --- a/packages/trpc/src/procedures/labels/getLabelsByUserId.spec.ts +++ b/packages/trpc/src/procedures/labels/getLabelsByUserId.spec.ts @@ -6,14 +6,15 @@ import type { AppRouter } from "../../index"; describe("getLabelsByUserId", () => { let user: User; + let user2: User; let trpc: CreateTRPCProxyClient; beforeAll(async () => { - ({ user, trpc } = await trpcSetup()); + ({ user, user2, trpc } = await trpcSetup()); }); afterAll(() => { - return tearDown(user.id); + return tearDown(user.id, user2.id); }); describe("success", () => { diff --git a/packages/trpc/src/procedures/labels/updateLabel.spec.ts b/packages/trpc/src/procedures/labels/updateLabel.spec.ts index 0d404048..aa74fefe 100644 --- a/packages/trpc/src/procedures/labels/updateLabel.spec.ts +++ b/packages/trpc/src/procedures/labels/updateLabel.spec.ts @@ -6,14 +6,15 @@ import type { AppRouter } from "../../index"; describe("updates label", () => { let user: User; + let user2: User; let trpc: CreateTRPCProxyClient; beforeEach(async () => { - ({ user, trpc } = await trpcSetup()); + ({ user, user2, trpc } = await trpcSetup()); }); afterEach(() => { - return tearDown(user.id); + return tearDown(user.id, user2.id); }); describe("success", () => { diff --git a/packages/trpc/src/procedures/recipes/getUniqueRecipeTitle.spec.ts b/packages/trpc/src/procedures/recipes/getUniqueRecipeTitle.spec.ts index 01334e50..ed70d65d 100644 --- a/packages/trpc/src/procedures/recipes/getUniqueRecipeTitle.spec.ts +++ b/packages/trpc/src/procedures/recipes/getUniqueRecipeTitle.spec.ts @@ -7,14 +7,15 @@ import type { AppRouter } from "../../index"; describe("getRecipe", () => { let user: User; + let user2: User; let trpc: CreateTRPCProxyClient; beforeAll(async () => { - ({ user, trpc } = await trpcSetup()); + ({ user, user2, trpc } = await trpcSetup()); }); afterAll(() => { - return tearDown(user.id); + return tearDown(user.id, user2.id); }); describe("success", () => { @@ -67,7 +68,7 @@ describe("getRecipe", () => { }); it("seperate recipies by user", async () => { - const { user: user2 } = await trpcSetup(); + const { user: user2, user2: user3 } = await trpcSetup(); await prisma.recipe.create({ data: { ...recipeFactory(user2.id), @@ -80,6 +81,6 @@ describe("getRecipe", () => { }); expect(response).toEqual("Spagetti with tomatos"); - return tearDown(user2.id); + return tearDown(user2.id, user3.id); }); });