next.js/test/e2e/app-dir/cache-components-errors/fixtures/unstable-deprecations/patch-console.js
patch-console.js13 lines294 B
const originalLog = console.log.bind(console)

console.log = (...args) => {
  new Date()
  Math.random()
  if (typeof args[0] === 'string') {
    const firstArg = '[<timestamp>] ' + args[0]
    originalLog(firstArg, ...args.slice(1))
  } else {
    originalLog('[<timestamp>] ', ...args)
  }
}
Quest for Codev2.0.0
/
SIGN IN