Skip to content

Commit

Permalink
Log at top level
Browse files Browse the repository at this point in the history
  • Loading branch information
ivov committed May 7, 2024
1 parent 61ef7c4 commit e143531
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/nodes-base/benchmark.env.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,19 @@ 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);
this.testPath = context.testPath;
this.docblockPragmas = context.docblockPragmas;
this.setupBenchmark();
}

async setup() {
await super.setup();
console.log('[benchmarking] env setup');
this.setupBenchmark();
await super.setup();
}

async teardown() {
Expand Down

0 comments on commit e143531

Please sign in to comment.