diff options
Diffstat (limited to 'packages/merchant-backoffice-ui/tests/stories.test.tsx')
-rw-r--r-- | packages/merchant-backoffice-ui/tests/stories.test.tsx | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/packages/merchant-backoffice-ui/tests/stories.test.tsx b/packages/merchant-backoffice-ui/tests/stories.test.tsx index b7336efde..b53b703e9 100644 --- a/packages/merchant-backoffice-ui/tests/stories.test.tsx +++ b/packages/merchant-backoffice-ui/tests/stories.test.tsx @@ -42,14 +42,11 @@ function getFiles(dir: string, files_: string[] = []) { const STORIES_NAME_REGEX = RegExp(".*.stories.tsx"); function render(vnode: VNode) { + const SC: any = SWRConfig return originalRender( - <SWRConfig - value={{ - provider: () => new Map(), - }} - > + <SC value={{ provider: () => new Map() }}> {vnode} - </SWRConfig>, + </SC>, ); } |