Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

test(api): keep project task counter in sync with seeded fixtures

Andrej896031e9efdc
diff --git a/tests/api-integration/task.test.ts b/tests/api-integration/task.test.ts
index 8e7367669..a06a37ffa 100644
--- a/tests/api-integration/task.test.ts
+++ b/tests/api-integration/task.test.ts
@@ -60,6 +60,10 @@ describe("API integration: task creation", () => {
number: 1,
position: 1,
});
+ await db
+ .update(schema.projectTable)
+ .set({ lastTaskNumber: 1 })
+ .where(eq(schema.projectTable.id, project.id));
mockAuthenticatedSession(member.user);
const { app } = createApp();