Skip to content

Commit

Permalink
chore: disable nx cloud
Browse files Browse the repository at this point in the history
  • Loading branch information
julianpoy committed Sep 6, 2024
1 parent 9b29d95 commit f22bb6f
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 15 deletions.
2 changes: 1 addition & 1 deletion nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"libsDir": "packages"
},
"useDaemonProcess": false,
"nxCloudAccessToken": "OGY4NDE3OTItYWViMS00YWM0LTk4ODgtYmI2ZWNhYjY1OGMyfHJlYWQtb25seQ==",
"neverConnectToCloud": true,
"useInferencePlugins": false,
"defaultBase": "master"
}
5 changes: 3 additions & 2 deletions packages/trpc/src/procedures/labels/createLabel.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@ import type { AppRouter } from "../../index";

describe("create Label", () => {
let user: User;
let user2: User;
let trpc: CreateTRPCProxyClient<AppRouter>;

beforeAll(async () => {
({ user, trpc } = await trpcSetup());
({ user, user2, trpc } = await trpcSetup());
});

afterAll(() => {
return tearDown(user.id);
return tearDown(user.id, user2.id);
});

describe("success", () => {
Expand Down
5 changes: 3 additions & 2 deletions packages/trpc/src/procedures/labels/deleteLabel.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,15 @@ import { faker } from "@faker-js/faker";

describe("deleteLabel", () => {
let user: User;
let user2: User;
let trpc: CreateTRPCProxyClient<AppRouter>;

beforeAll(async () => {
({ user, trpc } = await trpcSetup());
({ user, user2, trpc } = await trpcSetup());
});

afterAll(() => {
return tearDown(user.id);
return tearDown(user.id, user2.id);
});

describe("success", () => {
Expand Down
5 changes: 3 additions & 2 deletions packages/trpc/src/procedures/labels/getLabels.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@ import type { AppRouter } from "../../index";

describe("getLabels", () => {
let user: User;
let user2: User;
let trpc: CreateTRPCProxyClient<AppRouter>;

beforeEach(async () => {
({ user, trpc } = await trpcSetup());
({ user, user2, trpc } = await trpcSetup());
});

afterEach(() => {
return tearDown(user.id);
return tearDown(user.id, user2.id);
});

describe("success", () => {
Expand Down
5 changes: 3 additions & 2 deletions packages/trpc/src/procedures/labels/getLabelsByUserId.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@ import type { AppRouter } from "../../index";

describe("getLabelsByUserId", () => {
let user: User;
let user2: User;
let trpc: CreateTRPCProxyClient<AppRouter>;

beforeAll(async () => {
({ user, trpc } = await trpcSetup());
({ user, user2, trpc } = await trpcSetup());
});

afterAll(() => {
return tearDown(user.id);
return tearDown(user.id, user2.id);
});

describe("success", () => {
Expand Down
5 changes: 3 additions & 2 deletions packages/trpc/src/procedures/labels/updateLabel.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@ import type { AppRouter } from "../../index";

describe("updates label", () => {
let user: User;
let user2: User;
let trpc: CreateTRPCProxyClient<AppRouter>;

beforeEach(async () => {
({ user, trpc } = await trpcSetup());
({ user, user2, trpc } = await trpcSetup());
});

afterEach(() => {
return tearDown(user.id);
return tearDown(user.id, user2.id);
});

describe("success", () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@ import type { AppRouter } from "../../index";

describe("getRecipe", () => {
let user: User;
let user2: User;
let trpc: CreateTRPCProxyClient<AppRouter>;

beforeAll(async () => {
({ user, trpc } = await trpcSetup());
({ user, user2, trpc } = await trpcSetup());
});

afterAll(() => {
return tearDown(user.id);
return tearDown(user.id, user2.id);
});

describe("success", () => {
Expand Down Expand Up @@ -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),
Expand All @@ -80,6 +81,6 @@ describe("getRecipe", () => {
});
expect(response).toEqual("Spagetti with tomatos");

return tearDown(user2.id);
return tearDown(user2.id, user3.id);
});
});

0 comments on commit f22bb6f

Please sign in to comment.