Sha256: 419dbcc8f4aebee91d223845b13a469f45e03173650af0a09da39a62bbf12a44
Contents?: true
Size: 608 Bytes
Versions: 9
Compression:
Stored size: 608 Bytes
Contents
// Code included here will be ran to setup your specs. // it's a usefull spot to setup globals or custom matchers import matchers from 'hippo/testing/matchers'; import { shallow, mount } from 'enzyme'; import { fetch } from 'hippo/testing/mocks/fetch'; import React from 'react'; import 'hippo/testing'; global.expect.extend(matchers); global.shallow = shallow; global.mount = mount; global.fetch = fetch; global.React = React; // eslint-disable-next-line import/no-dynamic-require global.fixture = file => require(`../fixtures/<%= identifier %>/${file}.yml`); // eslint-disable-line global-require
Version data entries
9 entries across 9 versions & 1 rubygems