From 483e324d4c77c671f48126920527d65408c39c70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=A4=95=E0=A4=BE=E0=A4=B0=E0=A4=A4=E0=A5=8B=E0=A4=AB?= =?UTF-8?q?=E0=A5=8D=E0=A4=AB=E0=A5=87=E0=A4=B2=E0=A4=B8=E0=A5=8D=E0=A4=95?= =?UTF-8?q?=E0=A5=8D=E0=A4=B0=E0=A4=BF=E0=A4=AA=E0=A5=8D=E0=A4=9F=E2=84=A2?= Date: Wed, 14 Aug 2024 17:30:45 +0200 Subject: [PATCH] ci: Remove hard-coded package version in unit tests (no-changelog) (#10414) --- .../cli/src/events/__tests__/telemetry-event-relay.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/cli/src/events/__tests__/telemetry-event-relay.test.ts b/packages/cli/src/events/__tests__/telemetry-event-relay.test.ts index e1841f1726..387a60e625 100644 --- a/packages/cli/src/events/__tests__/telemetry-event-relay.test.ts +++ b/packages/cli/src/events/__tests__/telemetry-event-relay.test.ts @@ -13,6 +13,7 @@ import type { SharedWorkflowRepository } from '@/databases/repositories/sharedWo import type { ProjectRelationRepository } from '@/databases/repositories/projectRelation.repository'; import type { RelayEventMap } from '@/events/relay-event-map'; import type { WorkflowEntity } from '@/databases/entities/WorkflowEntity'; +import { N8N_VERSION } from '@/constants'; const flushPromises = async () => await new Promise((resolve) => setImmediate(resolve)); @@ -694,7 +695,7 @@ describe('TelemetryEventRelay', () => { is_manual: false, success: false, user_id: 'user123', - version_cli: '1.54.0', + version_cli: N8N_VERSION, workflow_id: 'workflow123', }); });