/* * Copyright 2018 The boardgame.io Authors * * Use of this source code is governed by a MIT-style * license that can be found in the LICENSE file or at * https://opensource.org/licenses/MIT. */ import React from 'react'; import Cookies from 'react-cookies'; import Lobby from './react'; import Enzyme from 'enzyme'; import Adapter from 'enzyme-adapter-react-16'; /* mock server requests */ global.fetch = jest .fn() .mockReturnValue({ ok: true, status: 200, json: () => [] }); /* mock 'Client' component */ function NullComponent() { return '