raf.js 148 B

1234
  1. // https://github.com/facebook/jest/issues/4545#issuecomment-332762365
  2. global.requestAnimationFrame = (callback) => {
  3. setTimeout(callback, 0);
  4. };