Skip to content

Commit

Permalink
Restore bench.run and run a single suite
Browse files Browse the repository at this point in the history
  • Loading branch information
ivov committed May 7, 2024
1 parent 0c33943 commit b8dd998
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/nodes-base/benchmark.env.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/nodes-base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit b8dd998

Please sign in to comment.