From cfdd41f1a90b78b2fe868644299801696de9ea1a Mon Sep 17 00:00:00 2001 From: Sokratis Vidros Date: Wed, 29 Jan 2025 14:55:54 +0200 Subject: [PATCH] fix(api): Try only one test --- apps/api/package.json | 2 +- apps/api/src/app/events/e2e/bridge-trigger.e2e.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/api/package.json b/apps/api/package.json index 01f1901567c..4651f59eeb5 100644 --- a/apps/api/package.json +++ b/apps/api/package.json @@ -24,7 +24,7 @@ "pretest": "pnpm build:metadata", "test": "cross-env TS_NODE_COMPILER_OPTIONS='{\"strictNullChecks\": false}' NODE_ENV=test mocha --timeout 5000 --require ts-node/register --exit 'src/**/*.spec.ts'", "test:e2e:novu-v1": "cross-env TS_NODE_COMPILER_OPTIONS='{\"strictNullChecks\": false}' NODE_ENV=test mocha --timeout 5000 --grep '#novu-v1' --require ts-node/register --exit --file e2e/setup.ts src/**/*.e2e{,-ee}.ts ", - "test:e2e:novu-v2": "cross-env DEBUG=mocha:* TS_NODE_COMPILER_OPTIONS='{\"strictNullChecks\": false}' NODE_ENV=test CI_EE_TEST=true CLERK_ENABLED=true NODE_OPTIONS=--max_old_space_size=8192 mocha --timeout 5000 --grep '#novu-v2' --require ts-node/register --exit --file e2e/setup.ts 'src/**/*.e2e{,-ee}.ts'", + "test:e2e:novu-v2": "cross-env DEBUG=mocha:* TS_NODE_COMPILER_OPTIONS='{\"strictNullChecks\": false}' NODE_ENV=test CI_EE_TEST=true CLERK_ENABLED=true NODE_OPTIONS=--max_old_space_size=8192 mocha --timeout 5000 --grep '#novu-v2' --require ts-node/register --exit --file e2e/setup.ts 'src/app/events/e2e/bridge-trigger.e2e.ts'", "migration": "cross-env NODE_ENV=local MIGRATION=true ts-node --transpileOnly", "link:submodules": "pnpm link ../../enterprise/packages/auth && pnpm link ../../enterprise/packages/translation && pnpm link ../../enterprise/packages/billing", "admin:remove-user-account": "cross-env NODE_ENV=local MIGRATION=true ts-node --transpileOnly ./admin/remove-user-account.ts", diff --git a/apps/api/src/app/events/e2e/bridge-trigger.e2e.ts b/apps/api/src/app/events/e2e/bridge-trigger.e2e.ts index 1435c37b772..36479be047f 100644 --- a/apps/api/src/app/events/e2e/bridge-trigger.e2e.ts +++ b/apps/api/src/app/events/e2e/bridge-trigger.e2e.ts @@ -59,7 +59,7 @@ contexts.forEach((context: Context) => { await bridgeServer.stop(); }); - it(`should trigger the bridge workflow with sync [${context.name}]`, async () => { + it.only(`should trigger the bridge workflow with sync [${context.name}]`, async () => { const workflowId = `hello-world-${`${context.name}`}`; const newWorkflow = workflow( workflowId,