Files
Recoil/setupJestMock.js
Aaron Abramov 8be343c531 Fix test and flow in master (#332)
Summary:
`gkx` module was added to the codebase and it doesn't exist outside www.
adding all necessary mocks to fix the build
Pull Request resolved: https://github.com/facebookexperimental/Recoil/pull/332

Reviewed By: drarmstr

Differential Revision: D22062299

Pulled By: aaronabramov

fbshipit-source-id: e61dbca322321e4a79d01b3c6d5ae954053c2bfb
2020-06-16 15:26:07 -07:00

6 lines
91 B
JavaScript

const Promise = require('promise-polyfill');
jest.mock('gkx');
global.Promise = Promise;