Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Fix the tests

Kiran K8847de2c39a7
diff --git a/apps/web/tests/links/create-link.test.ts b/apps/web/tests/links/create-link.test.ts
index 983b2dcf19..f510382f91 100644
--- a/apps/web/tests/links/create-link.test.ts
+++ b/apps/web/tests/links/create-link.test.ts
@@ -7,7 +7,7 @@ import { expectedLink } from "../utils/schema";
const { domain, url } = link;
-describe("POST /links", async () => {
+describe.sequential("POST /links", async () => {
const h = new IntegrationHarness();
const { workspace, user, http } = await h.init();
const { workspaceId } = workspace;
diff --git a/apps/web/tests/workspaces/create-workspace.test.ts b/apps/web/tests/workspaces/create-workspace.test.ts
index c3876ee263..22679e8d85 100644
--- a/apps/web/tests/workspaces/create-workspace.test.ts
+++ b/apps/web/tests/workspaces/create-workspace.test.ts
@@ -1,7 +1,7 @@
-import { nanoid } from "@dub/utils";
import { Project } from "@prisma/client";
import slugify from "@sindresorhus/slugify";
import { expect, test } from "vitest";
+import { randomId } from "../utils/helpers";
import { IntegrationHarness } from "../utils/integration";
import { expectedWorkspace } from "../utils/schema";
@@ -11,7 +11,7 @@ test.skip("POST /workspaces", async (ctx) => {
const { http } = await h.init();
const name = "Dub Workspace";
- const slug = slugify(`dub-${nanoid()}`);
+ const slug = slugify(`dub-${randomId()}`);
const { status, data: workspace } = await http.post<Project>({
path: "/workspaces",