before(fn)


注册一个钩子,在当前测试套件的基准测试开始前只运行一次。

🌐 Registers a hook that runs once before the benchmarks in the current suite.