Updated babel packages and extracted babel config

This commit is contained in:
Alejandro Celaya
2022-03-07 14:21:09 +01:00
parent fc71c0f5c8
commit 31f1d5b530
5 changed files with 681 additions and 359 deletions

View File

@@ -1,4 +1,5 @@
import { shallow, ShallowWrapper } from 'enzyme';
import { FormGroup } from 'reactstrap';
import { ServerForm } from '../../../src/servers/helpers/ServerForm';
describe('<ServerForm />', () => {
@@ -13,7 +14,7 @@ describe('<ServerForm />', () => {
afterEach(jest.resetAllMocks);
it('renders components', () => {
expect(wrapper.find('FormGroup')).toHaveLength(3);
expect(wrapper.find(FormGroup)).toHaveLength(3);
expect(wrapper.find('span')).toHaveLength(1);
});