diff --git a/__mocks__/@shopgate/pwa-common/context/index.js b/__mocks__/@shopgate/pwa-common/context/index.js
index <HASH>..<HASH> 100644
--- a/__mocks__/@shopgate/pwa-common/context/index.js
+++ b/__mocks__/@shopgate/pwa-common/context/index.js
@@ -22,6 +22,6 @@ export const RouteContext = ({
 
 export const FormContext = ({
   Provider(props) {
-    return props.children;
+    return typeof props.children === 'function' ? props.children() : props.children;
   },
 });
PWA-<I>: Changed automock of the FormContext provider which is used by the form builder.