From f0c9f4daf94d665b0f86ed112f8a65d7ee0d0c8d Mon Sep 17 00:00:00 2001 From: Chase Adams Date: Mon, 23 Dec 2024 12:36:52 -0700 Subject: [PATCH] fix: parallel tests --- integration/tests/integration.test.ts | 4 ++-- integration/tests/utils.ts | 4 ---- integration/vitest.config.ts | 2 ++ 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/integration/tests/integration.test.ts b/integration/tests/integration.test.ts index f9d1983..fd09e07 100644 --- a/integration/tests/integration.test.ts +++ b/integration/tests/integration.test.ts @@ -11,7 +11,7 @@ beforeAll(async () => { await startPostgresAndZero(); }, 60000); -test("can query users", async () => { +test.concurrent("can query users", async () => { const zero = new Zero({ server: "http://localhost:4949", userID: "1", @@ -31,7 +31,7 @@ test("can query users", async () => { preloadedUsers.cleanup(); }); -test("can query messages", async () => { +test.concurrent("can query messages", async () => { const zero = new Zero({ server: "http://localhost:4949", userID: "1", diff --git a/integration/tests/utils.ts b/integration/tests/utils.ts index 9796cf6..510c2fa 100644 --- a/integration/tests/utils.ts +++ b/integration/tests/utils.ts @@ -122,10 +122,6 @@ export const startPostgresAndZero = async () => { }, ]) .withStartupTimeout(60000) - // .withLogConsumer((logStream) => { - // logStream.on("data", (line) => console.log("Zero:", line.toString())); - // logStream.on("error", (err) => console.error("Zero log error:", err)); - // }) .start(); return { diff --git a/integration/vitest.config.ts b/integration/vitest.config.ts index d3857e6..7974b4f 100644 --- a/integration/vitest.config.ts +++ b/integration/vitest.config.ts @@ -5,6 +5,8 @@ export default defineConfig({ test: { include: ["tests/**/*.test.ts"], testTimeout: 60000, + }, + plugins: [tsconfigPaths()], });