Revision 89b8fc37
Added by Amir Fefer over 4 years ago
webpack/assets/javascripts/react_app/components/ToastsList/ToastsList.test.js | ||
---|---|---|
import toJson from 'enzyme-to-json';
|
||
import { mount } from 'enzyme';
|
||
import { mount } from '@theforeman/test';
|
||
import React from 'react';
|
||
import configureMockStore from 'redux-mock-store';
|
||
import thunk from 'redux-thunk';
|
||
... | ... | |
const store = mockStore(state);
|
||
const box = mount(<ToastList store={store} />);
|
||
|
||
expect(toJson(box)).toMatchSnapshot();
|
||
expect(box).toMatchSnapshot();
|
||
});
|
||
};
|
||
|
Also available in: Unified diff
Fixes #28488 - consume jest config from env