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

Version Path
hippo-fw-0.9.9 templates/spec/client/setup.js
hippo-fw-0.9.8 templates/spec/client/setup.js
hippo-fw-0.9.7 templates/spec/client/setup.js
hippo-fw-0.9.6 templates/spec/client/setup.js
hippo-fw-0.9.5 templates/spec/client/setup.js
hippo-fw-0.9.4 templates/spec/client/setup.js
hippo-fw-0.9.3 templates/spec/client/setup.js
hippo-fw-0.9.2 templates/spec/client/setup.js
hippo-fw-0.9.1 templates/spec/client/setup.js