⭐️⭐️⭐️ Open-source, self-hosted alternative to Linear and Plane. Project management and issue tracking where teams and AI agents work side by side to plan and ship products.
TypeScript agenticagileai-agentsbug-reportingbug-trackerganttissue-trackerjirajira-alternativekanbanlinearlinear-alternativeopen-sourceproduct-managementproject-managementroadmapself-hostedsprint-planningteam-collaborationtrello-alternative
test(api): the current user test creates its project in a team (#587)
Pasqual Tronconea6fef7daa9b6
diff --git a/apps/api/src/modules/current-user/__tests__/integration/current-user.test.ts b/apps/api/src/modules/current-user/__tests__/integration/current-user.test.tsindex c3aec160..1366469d 100644--- a/apps/api/src/modules/current-user/__tests__/integration/current-user.test.ts+++ b/apps/api/src/modules/current-user/__tests__/integration/current-user.test.ts@@ -1,6 +1,6 @@import { beforeEach, describe, expect, it } from 'bun:test';import { auth } from '@repo/auth';-import { app, authedApi } from '#tests/helpers/app';+import { app, authedApi, createProject } from '#tests/helpers/app';import { resetDb } from '#tests/helpers/db';import { signUpTestUser } from '#tests/helpers/auth';import { createAgent, teamOf } from '#tests/helpers/agents';@@ -82,7 +82,7 @@ describe('GET /me', () => {it('tells an agent it is one, with its handle', async () => {const owner = await signUpTestUser({ name: 'Owner' });const asOwner = authedApi(owner.cookie);- await asOwner.projects.post({ key: 'MKT', name: 'Marketing' });+ await createProject(asOwner, { key: 'MKT', name: 'Marketing' });const teamId = await teamOf(asOwner, 'MKT');const created = await createAgent(asOwner, 'MKT', {name: 'Triage Bot',