You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/react-renderer-demo/src/pages/testing.md
+8-9Lines changed: 8 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,13 +16,13 @@ If you want to test your whole form, the easiest way is just to render it as you
16
16
17
17
Below is an example of a form with an async validation and a conditional field. All features in the data driven forms packages are tested by the library. It should not be required to tests them most of the time.
18
18
19
-
```
19
+
```jsx
20
20
importReactfrom'react';
21
21
import { act } from'react-dom/test-utils';
22
22
import { mount } from'enzyme';
23
-
import FormRenderer from '@data-driven-forms/react-form-renderer/dist/cjs/form-renderer';
24
23
25
-
import { componentMapper, FormTemplate } from '@data-driven-forms/mui-component-mapper/dist/cjs';
0 commit comments