UNPKG

tqf

Version:

React Query hooks for Firebase.

27 lines (21 loc) 625 B
/** * Correct Jest bug that prevents the Firestore tests from running. More info here: * https://github.com/firebase/firebase-js-sdk/issues/3096#issuecomment-637584185 */ const BrowserEnvironment = require("jest-environment-jsdom"); class MyEnvironment extends BrowserEnvironment { constructor(config) { super( Object.assign({}, config, { globals: Object.assign({}, config.globals, { Uint32Array: Uint32Array, Uint8Array: Uint8Array, ArrayBuffer: ArrayBuffer, }), }) ); } async setup() {} async teardown() {} } module.exports = MyEnvironment;