Project

General

Profile

« Previous | Next » 

Revision 89b8fc37

Added by Amir Fefer over 4 years ago

Fixes #28488 - consume jest config from env

View differences:

webpack/assets/javascripts/react_app/components/common/MessageBox/MessageBox.test.js
import toJson from 'enzyme-to-json';
import { shallow } from 'enzyme';
import { shallow } from '@theforeman/test';
import React from 'react';
import MessageBox from './index';
......
const testMessageBoxSnapshot = props => {
const wrapper = shallow(<MessageBox {...props} />);
expect(toJson(wrapper)).toMatchSnapshot();
expect(wrapper).toMatchSnapshot();
};
describe('MessageBox', () => {

Also available in: Unified diff