diff --git a/.travis.yml b/.travis.yml index f5461c7..1d17278 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,13 +1,12 @@ language: node_js node_js: - - "8" + - "10" + - "12" cache: yarn: true directories: - "node_modules" before_install: - - curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.3.2 - - export PATH="$HOME/.yarn/bin:$PATH" - export TZ=Europe/Berlin before_script: - yarn add react react-dom prop-types diff --git a/__tests__/config.js b/__tests__/config.js deleted file mode 100644 index e320d20..0000000 --- a/__tests__/config.js +++ /dev/null @@ -1,6 +0,0 @@ -import Enzyme from 'enzyme' -import Adapter from 'enzyme-adapter-react-16' -import { createSerializer } from 'enzyme-to-json' - -Enzyme.configure({ adapter: new Adapter() }) -expect.addSnapshotSerializer(createSerializer({ mode: 'deep' })) diff --git a/package.json b/package.json index 00ebf1d..611bc61 100644 --- a/package.json +++ b/package.json @@ -63,6 +63,7 @@ "eslint-plugin-jsx-a11y": "^6.2.1", "eslint-plugin-react": "^7.13.0", "express": "^4.17.1", + "jest-enzyme": "^7.0.2", "react-mock-router": "^1.0.15", "react-scripts": "^3.0.1", "tslint": "^5.17.0", @@ -78,6 +79,14 @@ "dashboard", "material-ui" ], + "jest": { + "watchPathIgnorePatterns": [ + "node_modules", + "build", + "coverage", + "dist" + ] + }, "browserslist": { "production": [ ">0.2%", diff --git a/src/AddButton/AddButton.test.jsx b/src/AddButton/AddButton.test.jsx index f3c7f7f..0572cc0 100644 --- a/src/AddButton/AddButton.test.jsx +++ b/src/AddButton/AddButton.test.jsx @@ -1,10 +1,10 @@ import React from 'react' -import { mount } from 'enzyme' +import { shallow } from 'enzyme' -import AddButton from './' +import AddButton from '.' it('renders correctly', () => { - const tree = mount( {}} />) + const tree = shallow( {}} />) expect(tree).toMatchSnapshot() }) diff --git a/src/AddButton/__snapshots__/AddButton.test.jsx.snap b/src/AddButton/__snapshots__/AddButton.test.jsx.snap index 8735578..df1b1c1 100644 --- a/src/AddButton/__snapshots__/AddButton.test.jsx.snap +++ b/src/AddButton/__snapshots__/AddButton.test.jsx.snap @@ -1,46 +1,12 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`renders correctly 1`] = ` - +/> `; diff --git a/src/AppContainer/AppContainer.test.jsx b/src/AppContainer/AppContainer.test.jsx index 2702400..3a67727 100644 --- a/src/AppContainer/AppContainer.test.jsx +++ b/src/AppContainer/AppContainer.test.jsx @@ -1,11 +1,11 @@ import React from 'react' -import { mount } from 'enzyme' +import { shallow } from 'enzyme' -import AppContainer from './' +import AppContainer from '.' describe('Component Info', () => { it('renders correctly', () => { - const tree = mount(( + const tree = shallow(( Foo diff --git a/src/AppContainer/__snapshots__/AppContainer.test.jsx.snap b/src/AppContainer/__snapshots__/AppContainer.test.jsx.snap index 4ff732b..3c01db6 100644 --- a/src/AppContainer/__snapshots__/AppContainer.test.jsx.snap +++ b/src/AppContainer/__snapshots__/AppContainer.test.jsx.snap @@ -1,3 +1,3 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`Component Info renders correctly 1`] = `"Foo"`; +exports[`Component Info renders correctly 1`] = ``; diff --git a/src/BackButton/BackButton.test.jsx b/src/BackButton/BackButton.test.jsx index 0cd4d2f..5b5ae03 100644 --- a/src/BackButton/BackButton.test.jsx +++ b/src/BackButton/BackButton.test.jsx @@ -1,19 +1,19 @@ import React from 'react' import MockRouter from 'react-mock-router' -import { mount } from 'enzyme' +import { shallow } from 'enzyme' import BackButton from '.' describe('Back Button', () => { it('renders correctly', () => { - const tree = mount(()) + const tree = shallow(()) expect(tree).toMatchSnapshot() }) it('updates history on click', () => { const push = jest.fn() - const button = mount() + const button = shallow() button.find(BackButton).simulate('click') diff --git a/src/BackButton/__snapshots__/BackButton.test.jsx.snap b/src/BackButton/__snapshots__/BackButton.test.jsx.snap index c542444..e96cac4 100644 --- a/src/BackButton/__snapshots__/BackButton.test.jsx.snap +++ b/src/BackButton/__snapshots__/BackButton.test.jsx.snap @@ -1,44 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`Back Button renders correctly 1`] = ` - + `; diff --git a/src/Base/Base.test.jsx b/src/Base/Base.test.jsx index dad7408..808afdc 100644 --- a/src/Base/Base.test.jsx +++ b/src/Base/Base.test.jsx @@ -1,12 +1,12 @@ import React from 'react' import MockRouter from 'react-mock-router' -import Enzyme, { mount } from 'enzyme' +import Enzyme, { shallow } from 'enzyme' import Adapter from 'enzyme-adapter-react-16' import { Typography, IconButton, Button } from '@material-ui/core' -import Base from './' +import Base from '.' -import menuData from '../../__tests__/data/menu' +import menuData from '../tests/data/menu' import Header from '../Header' import Drawer from '../Drawer' import CookieInfo from '../CookieInfo' @@ -15,7 +15,7 @@ Enzyme.configure({ adapter: new Adapter() }) describe('Base', () => { it('renders correctly', () => { - const tree = mount(( + const tree = shallow(( { }) it('renders correctly without header', () => { - const tree = mount(( + const tree = shallow(( { }) it('renders with drawer open', () => { - const tree = mount(( + const tree = shallow(( { }) it('click on title', () => { - const tree = mount(( + const tree = shallow(( { }) it('click on menu icon if open changes state', () => { - const tree = mount(( + const tree = shallow(( { }) it('click on menu icon if closed changes state', () => { - const tree = mount(( + const tree = shallow(( { }) it('call function when cookie is accepted', () => { - const tree = mount(( + const tree = shallow(( -
-
-
- -

- Foo -

-
-
-
-
-
-
-
-
- -
-
-
-
    -
    -
    - - Dashboard - -
    - -
    -
    -
    - - New portfolio - -
    - -
    -
    -
    - -
    - - Report a bug - -
    - -
    -
-
-
-
-
-
-
-
- -
-
- Foo -
-
-
- -`; - -exports[`Base click on menu icon if closed changes state 1`] = ` -
-
-
-
- -

- Foo -

-
-
-
-
-
-
-
-
- -
-
-
-
    -
    -
    - - Dashboard - -
    - -
    -
    -
    - - New portfolio - -
    - -
    -
    -
    - -
    - - Report a bug - -
    - -
    -
-
-
-
-
-
-
- Foo -
-
-
-
-`; - -exports[`Base click on menu icon if open changes state 1`] = ` -
-
-
-
- -

- Foo -

-
-
-
-
-
-
-
-
- -
-
-
-
    -
    -
    - - Dashboard - -
    - -
    -
    -
    - - New portfolio - -
    - -
    -
    -
    - -
    - - Report a bug - -
    - -
    -
-
-
-
-
-
-
+ <_class + hasCookieInfo={true} + hasHeader={true} + isHeaderFixed={true} + isOpen={false} + menuData={ + Array [ + Object { + "icon": null, + "title": "Dashboard", + "type": "link", + "url": "/", + }, + Object { + "isDisabled": true, + "title": "New portfolio", + "type": "link", + "url": "/portfolio", + }, + Object { + "type": "divider", + }, + Object { + "icon": Object { + "$$typeof": Symbol(react.memo), + "compare": null, + "displayName": "BugReportIcon", + "muiName": "SvgIcon", + "type": Object { + "$$typeof": Symbol(react.forward_ref), + "render": [Function], + }, + }, + "title": "Report a bug", + "type": "link", + "url": "/bug", + }, + ] + } + menuOpen={true} + rightContent={null} + title="Foo" + > + + - Foo -
-
-
-
-`; - -exports[`Base click on title 1`] = ` -
-
-
-
- -

- Foo -

-
-
-
-
-
-
-
-
- -
-
-
-
    -
    +
    + +
    +
    -
    - - Dashboard - -
    - + + +
    + + +
    + + + + + + + + + + + +
    + Foo +
    +
    +
    +
    +
    +
    +
    +
    +
    + +
    -
    + +
    + + -
    - - New portfolio - -
    - +
    + + + + + +
    +
    +
    + + + + + + + + + +
    + + +
    +
    +
    + + +
    + + +
      + + + + + + +
      + + +
      + + + + Dashboard + + + +
      +
      +
      + + + + + + + + + +
      +
      +
      +
      +
      +
      +
      + + + + + + +
      + + +
      + + + + New portfolio + + + +
      +
      +
      + + + + + + + + + +
      +
      +
      +
      +
      +
      +
      + + +
      +
      +
      + + + + + + +
      + + +
      + + + + + + + +
      +
      +
      + + +
      + + + + Report a bug + + + +
      +
      +
      + + + + + + + + + +
      +
      +
      +
      +
      +
      +
      +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    + + +
    +
    +
    + + +
    +
    + + + + + + + + + +
    + + +
    + Foo
    -
    +
    +
    +
    + + + + +`; + +exports[`Base click on menu icon if closed changes state 1`] = ` + + <_class + hasCookieInfo={true} + hasHeader={true} + isHeaderFixed={true} + isOpen={false} + menuData={ + Array [ + Object { + "icon": null, + "title": "Dashboard", + "type": "link", + "url": "/", + }, + Object { + "isDisabled": true, + "title": "New portfolio", + "type": "link", + "url": "/portfolio", + }, + Object { + "type": "divider", + }, + Object { + "icon": Object { + "$$typeof": Symbol(react.memo), + "compare": null, + "displayName": "BugReportIcon", + "muiName": "SvgIcon", + "type": Object { + "$$typeof": Symbol(react.forward_ref), + "render": [Function], + }, + }, + "title": "Report a bug", + "type": "link", + "url": "/bug", + }, + ] + } + menuOpen={true} + rightContent={null} + title="Foo" + > + + +
    + +
    - -
    + + +
    + + +
    + + + + + + + + + + + +
    + Foo +
    +
    +
    +
    +
    +
    +
    +
    +
    + + +
    +
    +
    +
    + + + - - Report a bug - -
    - +
    + + + + + +
    +
    +
    + + + + + + + + + +
    + + +
    +
    +
    + + +
    + + +
      + + + + + + +
      + + +
      + + + + Dashboard + + + +
      +
      +
      + + + + + + + + + +
      +
      +
      +
      +
      +
      +
      + + + + + + +
      + + +
      + + + + New portfolio + + + +
      +
      +
      + + + + + + + + + +
      +
      +
      +
      +
      +
      +
      + + +
      +
      +
      + + + + + + +
      + + +
      + + + + + + + +
      +
      +
      + + +
      + + + + Report a bug + + + +
      +
      +
      + + + + + + + + + +
      +
      +
      +
      +
      +
      +
      +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    + + + + +
    +
    + Foo
    -
+
-
-
-
+ + + +`; + +exports[`Base click on menu icon if open changes state 1`] = ` + + <_class + hasCookieInfo={true} + hasHeader={true} + isHeaderFixed={true} + isOpen={true} + menuData={ + Array [ + Object { + "icon": null, + "title": "Dashboard", + "type": "link", + "url": "/", + }, + Object { + "isDisabled": true, + "title": "New portfolio", + "type": "link", + "url": "/portfolio", + }, + Object { + "type": "divider", + }, + Object { + "icon": Object { + "$$typeof": Symbol(react.memo), + "compare": null, + "displayName": "BugReportIcon", + "muiName": "SvgIcon", + "type": Object { + "$$typeof": Symbol(react.forward_ref), + "render": [Function], + }, + }, + "title": "Report a bug", + "type": "link", + "url": "/bug", + }, + ] + } + menuOpen={true} + rightContent={null} + title="Foo" + > + -
- Foo -
-
-
-
+
+ +
+
+ + + + +
+ + +
+ + + + + + + + + + + +
+ Foo +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ + + + +
+ + + + + +
+
+
+ + + + + + + + + +
+ + +
+
+
+ + +
+ + +
    + + + + + + +
    + + +
    + + + + Dashboard + + + +
    +
    +
    + + + + + + + + + +
    +
    +
    +
    +
    +
    +
    + + + + + + +
    + + +
    + + + + New portfolio + + + +
    +
    +
    + + + + + + + + + +
    +
    +
    +
    +
    +
    +
    + + +
    +
    +
    + + + + + + +
    + + +
    + + + + + + + +
    +
    +
    + + +
    + + + + Report a bug + + + +
    +
    +
    + + + + + + + + + +
    +
    +
    +
    +
    +
    +
    +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Foo +
+
+
+
+ + + +
`; -exports[`Base renders correctly 1`] = ` +exports[`Base click on title 1`] = `
`; +exports[`Base renders correctly 1`] = ` +<_class + hasCookieInfo={true} + hasHeader={true} + isHeaderFixed={true} + menuData={ + Array [ + Object { + "icon": null, + "title": "Dashboard", + "type": "link", + "url": "/", + }, + Object { + "isDisabled": true, + "title": "New portfolio", + "type": "link", + "url": "/portfolio", + }, + Object { + "type": "divider", + }, + Object { + "icon": Object { + "$$typeof": Symbol(react.memo), + "compare": null, + "displayName": "BugReportIcon", + "muiName": "SvgIcon", + "type": Object { + "$$typeof": Symbol(react.forward_ref), + "render": [Function], + }, + }, + "title": "Report a bug", + "type": "link", + "url": "/bug", + }, + ] + } + menuOpen={true} + rightContent={null} + title="Foo" +> +
+ Foo +
+ +`; + exports[`Base renders correctly without header 1`] = ` -
-
-
-
- Foo -
-
+<_class + hasCookieInfo={true} + hasHeader={false} + isHeaderFixed={true} + menuData={ + Array [ + Object { + "icon": null, + "title": "Dashboard", + "type": "link", + "url": "/", + }, + Object { + "isDisabled": true, + "title": "New portfolio", + "type": "link", + "url": "/portfolio", + }, + Object { + "type": "divider", + }, + Object { + "icon": Object { + "$$typeof": Symbol(react.memo), + "compare": null, + "displayName": "BugReportIcon", + "muiName": "SvgIcon", + "type": Object { + "$$typeof": Symbol(react.forward_ref), + "render": [Function], + }, + }, + "title": "Report a bug", + "type": "link", + "url": "/bug", + }, + ] + } + menuOpen={true} + rightContent={null} + title="Foo" +> +
+ Foo
-
+ `; exports[`Base renders with drawer open 1`] = ` -
-
-
-
- Foo -
-
+<_class + hasCookieInfo={true} + hasHeader={false} + isHeaderFixed={true} + isOpen={true} + menuData={ + Array [ + Object { + "icon": null, + "title": "Dashboard", + "type": "link", + "url": "/", + }, + Object { + "isDisabled": true, + "title": "New portfolio", + "type": "link", + "url": "/portfolio", + }, + Object { + "type": "divider", + }, + Object { + "icon": Object { + "$$typeof": Symbol(react.memo), + "compare": null, + "displayName": "BugReportIcon", + "muiName": "SvgIcon", + "type": Object { + "$$typeof": Symbol(react.forward_ref), + "render": [Function], + }, + }, + "title": "Report a bug", + "type": "link", + "url": "/bug", + }, + ] + } + menuOpen={true} + rightContent={null} + title="Foo" +> +
+ Foo
-
+ `; diff --git a/src/Confirm/Confirm.test.jsx b/src/Confirm/Confirm.test.jsx index 14faae5..7a74f74 100644 --- a/src/Confirm/Confirm.test.jsx +++ b/src/Confirm/Confirm.test.jsx @@ -1,14 +1,14 @@ import React from 'react' -import Enzyme, { shallow, mount } from 'enzyme' +import Enzyme, { shallow } from 'enzyme' import Adapter from 'enzyme-adapter-react-16' -import Confirm from './' +import Confirm from '.' Enzyme.configure({ adapter: new Adapter() }) describe('Confirm', () => { it('renders correctly', () => { - const tree = mount( { }} @@ -18,7 +18,7 @@ describe('Confirm', () => { }) it('renders correctly without close button', () => { - const tree = mount( { }} diff --git a/src/Confirm/__snapshots__/Confirm.test.jsx.snap b/src/Confirm/__snapshots__/Confirm.test.jsx.snap index f8feb9b..800dc67 100644 --- a/src/Confirm/__snapshots__/Confirm.test.jsx.snap +++ b/src/Confirm/__snapshots__/Confirm.test.jsx.snap @@ -1,5 +1,27 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`Confirm renders correctly 1`] = `""`; +exports[`Confirm renders correctly 1`] = ` + +`; -exports[`Confirm renders correctly without close button 1`] = `""`; +exports[`Confirm renders correctly without close button 1`] = ` + +`; diff --git a/src/CookieInfo/CookieInfo.test.jsx b/src/CookieInfo/CookieInfo.test.jsx index 9ac0817..7a32b6c 100644 --- a/src/CookieInfo/CookieInfo.test.jsx +++ b/src/CookieInfo/CookieInfo.test.jsx @@ -1,16 +1,16 @@ import React from 'react' -import Enzyme, { mount } from 'enzyme' +import Enzyme, { shallow } from 'enzyme' import Adapter from 'enzyme-adapter-react-16' import { Button } from '@material-ui/core' -import CookieInfo from './' +import CookieInfo from '.' Enzyme.configure({ adapter: new Adapter() }) describe('Component Info', () => { it('renders correctly', () => { - const tree = mount(Foo) + const tree = shallow(Foo) expect(tree).toMatchSnapshot() }) @@ -18,7 +18,7 @@ describe('Component Info', () => { it('click away', () => { const mockCallBack = jest.fn() - const cookieInfo = mount(( + const cookieInfo = shallow(( -
- Foo -
- -
+ Foo + `; diff --git a/src/Dashboard/Dashboard.test.jsx b/src/Dashboard/Dashboard.test.jsx index f2cd351..923285f 100644 --- a/src/Dashboard/Dashboard.test.jsx +++ b/src/Dashboard/Dashboard.test.jsx @@ -1,11 +1,11 @@ import React from 'react' import { BrowserRouter as Router } from 'react-router-dom' -import { mount } from 'enzyme' +import { shallow } from 'enzyme' -import Dashboard from './' +import Dashboard from '.' it('renders correctly', () => { - const tree = mount(( + const tree = shallow(( { - const tree = mount( { }} @@ -15,7 +15,7 @@ it('renders correctly', () => { it('renders disabled', () => { - const tree = mount(( + const tree = shallow(( { - const tree = mount( -
-

- Backoffice -

-

- Visual Testing for Backoffice Framework -

-
-
-
-
- Title -
-
-
-
-
-
-

- title -

-

- desc -

-
-
-
-
-
-
+ + `; diff --git a/src/Dashboard/__snapshots__/DashboardCard.test.jsx.snap b/src/Dashboard/__snapshots__/DashboardCard.test.jsx.snap index a2d3f51..6163c81 100644 --- a/src/Dashboard/__snapshots__/DashboardCard.test.jsx.snap +++ b/src/Dashboard/__snapshots__/DashboardCard.test.jsx.snap @@ -1,60 +1,41 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`renders correctly 1`] = ` -
-
-

- Title -

-

- desc -

-
-
+ `; exports[`renders disabled 1`] = ` -
-
- -

- Title -

-

- desc -

-
-
+ `; diff --git a/src/Dashboard/__snapshots__/DashboardGroup.test.jsx.snap b/src/Dashboard/__snapshots__/DashboardGroup.test.jsx.snap index 7446e97..7960af2 100644 --- a/src/Dashboard/__snapshots__/DashboardGroup.test.jsx.snap +++ b/src/Dashboard/__snapshots__/DashboardGroup.test.jsx.snap @@ -1,42 +1,21 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`renders correctly 1`] = ` -
-
-
- Title -
-
-
-
-
-
-

- title -

-

- desc -

-
-
-
-
-
+ `; diff --git a/src/Drawer/Drawer.test.jsx b/src/Drawer/Drawer.test.jsx index 9447741..33a933f 100644 --- a/src/Drawer/Drawer.test.jsx +++ b/src/Drawer/Drawer.test.jsx @@ -1,12 +1,12 @@ import React from 'react' -import { mount } from 'enzyme' +import { shallow } from 'enzyme' -import menuData from '../../__tests__/data/menu' +import menuData from '../tests/data/menu' -import Drawer from './' +import Drawer from '.' it('renders correctly', () => { - const tree = mount( {}} diff --git a/src/Drawer/__snapshots__/Drawer.test.jsx.snap b/src/Drawer/__snapshots__/Drawer.test.jsx.snap index 0458b4c..5bb31da 100644 --- a/src/Drawer/__snapshots__/Drawer.test.jsx.snap +++ b/src/Drawer/__snapshots__/Drawer.test.jsx.snap @@ -1,183 +1,49 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`renders correctly 1`] = ` -
-
-
-
- -
-
-
-
    -
    -
    - - Dashboard - -
    - -
    -
    -
    - - New portfolio - -
    - -
    -
    -
    -
    - -
    -
    - - Report a bug - -
    - -
    -
-
-
-
-
+ `; diff --git a/src/Form/Form.test.jsx b/src/Form/Form.test.jsx index 253de3f..0e9655e 100644 --- a/src/Form/Form.test.jsx +++ b/src/Form/Form.test.jsx @@ -1,13 +1,13 @@ import React from 'react' import { MemoryRouter } from 'react-router-dom' -import { mount } from 'enzyme' +import { shallow } from 'enzyme' -import Form from './' +import Form from '.' -import formData from '../../__tests__/data/form' +import formData from '../tests/data/form' it('renders correctly', () => { - const tree = mount(( + const tree = shallow((
{ }) it('renders correctly with content', () => { - const tree = mount(( + const tree = shallow(( { it('handles change', () => { const handleChange = jest.fn() - const field = mount(( + const field = shallow(( { }) it('renders non-visible', () => { - const field = mount(( + const field = shallow(( { it('renders calls beforeSubmit function, handles number', () => { const beforeSubmit = jest.fn() - const field = mount(( + const field = shallow(( { }) it('handles list', () => { - const field = mount(( + const field = shallow(( { }) it('handles list with allowed values', () => { - const field = mount(( + const field = shallow(( { }) it('handles list delete', () => { - const field = mount(( + const field = shallow(( { it('renders list item via function', () => { const renderElement = jest.fn() - const field = mount(( + const field = shallow(( { }) it('does not render if there is no option', () => { - const field = mount(( + const field = shallow(( { }) it('handles datetime field', () => { - const field = mount(( + const field = shallow(( { }) it('handles date field', () => { - const field = mount(( + const field = shallow(( { }) it('handles time field', () => { - const field = mount(( + const field = shallow(( { message: 'Value should equal `test`', } - const field = mount(( + const field = shallow(( { - const tree = mount(( + const tree = shallow(( )) @@ -13,7 +13,7 @@ it('renders correctly', () => { it('renders disabled', () => { - const tree = mount(( + const tree = shallow(( diff --git a/src/Form/FormFieldSwitch.test.jsx b/src/Form/FormFieldSwitch.test.jsx index ea8dd63..1760c67 100644 --- a/src/Form/FormFieldSwitch.test.jsx +++ b/src/Form/FormFieldSwitch.test.jsx @@ -1,10 +1,10 @@ import React from 'react' -import { mount } from 'enzyme' +import { shallow } from 'enzyme' import FormFieldSwitch from './FormFieldSwitch' it('renders correctly', () => { - const tree = mount(( + const tree = shallow(( { }) it('renders disabled', () => { - const tree = mount(( + const tree = shallow(( { }) it('renders with helper text', () => { - const tree = mount(( + const tree = shallow(( -
-

- Form -

-
- -
- -
-
-
- -
-
-
- -
- - -
-
-
-
- -
- -
-
-
- -
-