"use strict";
// This is a workaround shim for React 16 and running jest test cases
// Without this shim the following warning message occurs:
//
// Warning: React depends on requestAnimationFrame. Make sure that you load a polyfill in older browsers. http://fb.me/react-polyfills
// https://github.com/facebook/jest/issues/4545
//
// This is loaded as part of the jest configuration within package.json.  It is
// addd to the "setupFiles" which are executed before each test file in
// package.json
//
// ...
// "setupFiles": [
//     "<rootDir>/bin/workaround.js",
// ],
// ...
//
global.requestAnimationFrame = (callback) => {
    setTimeout(callback, 0);
};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid29ya2Fyb3VuZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIndvcmthcm91bmQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLHFFQUFxRTtBQUNyRSwwREFBMEQ7QUFDMUQsRUFBRTtBQUNGLHNJQUFzSTtBQUN0SSwrQ0FBK0M7QUFDL0MsRUFBRTtBQUNGLCtFQUErRTtBQUMvRSx1RUFBdUU7QUFDdkUsZUFBZTtBQUNmLEVBQUU7QUFDRixNQUFNO0FBQ04sa0JBQWtCO0FBQ2xCLHFDQUFxQztBQUNyQyxLQUFLO0FBQ0wsTUFBTTtBQUNOLEVBQUU7QUFFRCxNQUFjLENBQUMscUJBQXFCLEdBQUcsQ0FBQyxRQUFhLEVBQUUsRUFBRTtJQUN0RCxVQUFVLENBQUMsUUFBUSxFQUFFLENBQUMsQ0FBQyxDQUFDO0FBQzVCLENBQUMsQ0FBQyJ9