Skip to content

Commit

Permalink
Remove bench.add
Browse files Browse the repository at this point in the history
  • Loading branch information
ivov committed May 7, 2024
1 parent e143531 commit 0c33943
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/nodes-base/benchmark.env.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ const NodeEnvironment = require('jest-environment-node').TestEnvironment;
const { Bench } = require('tinybench');
const { withCodSpeed } = require('@codspeed/tinybench-plugin');

console.log('[benchmarking] potatoes');

class BenchmarkEnvironment extends NodeEnvironment {
constructor(config, context) {
super(config, context);
Expand Down Expand Up @@ -45,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

0 comments on commit 0c33943

Please sign in to comment.