next.js/test/e2e/instrumentation-hook/with-async-node-page/instrumentation.node.js
instrumentation.node.js9 lines197 B
/*global globalThis*/

const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms))

export async function register() {
  await sleep(1000)
  globalThis.instrumentationFinished = true
}
Quest for Codev2.0.0
/
SIGN IN