From b8dd998e640286a2703b78b4b32c82a6d8dd514a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Ovejero?= Date: Tue, 7 May 2024 17:17:02 +0200 Subject: [PATCH] Restore bench.run and run a single suite --- packages/nodes-base/benchmark.env.js | 2 +- packages/nodes-base/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/nodes-base/benchmark.env.js b/packages/nodes-base/benchmark.env.js index 6fbd6d0242b9e..a9a1b37a5ce2e 100644 --- a/packages/nodes-base/benchmark.env.js +++ b/packages/nodes-base/benchmark.env.js @@ -43,7 +43,7 @@ class BenchmarkEnvironment extends NodeEnvironment { async handleTestEvent(event) { if (event.name === 'add_test') { console.log('[benchmarking] add test', event.testName); - // this.bench.add(event.testName, event.fn); + this.bench.add(event.testName, event.fn); } } } diff --git a/packages/nodes-base/package.json b/packages/nodes-base/package.json index 27fcec006829f..a2e068d2898bd 100644 --- a/packages/nodes-base/package.json +++ b/packages/nodes-base/package.json @@ -14,7 +14,7 @@ "url": "git+https://github.com/n8n-io/n8n.git" }, "scripts": { - "benchmark": "jest --config benchmark.config.js", + "benchmark": "jest --config benchmark.config.js -- packages/nodes-base/nodes/Set/test/Set.node.test.ts", "clean": "rimraf dist .turbo", "dev": "pnpm watch", "typecheck": "tsc",