diff --git a/tests/integration/n8n-api/workflows/create-workflow.test.ts b/tests/integration/n8n-api/workflows/create-workflow.test.ts index 69157fb..215431e 100644 --- a/tests/integration/n8n-api/workflows/create-workflow.test.ts +++ b/tests/integration/n8n-api/workflows/create-workflow.test.ts @@ -36,8 +36,11 @@ describe('Integration: handleCreateWorkflow', () => { // Global cleanup after all tests to catch any orphaned workflows // (e.g., from test retries or failures) + // IMPORTANT: Skip cleanup in CI to preserve shared n8n instance workflows afterAll(async () => { - await cleanupOrphanedWorkflows(); + if (!process.env.CI) { + await cleanupOrphanedWorkflows(); + } }); // ======================================================================