aboutsummaryrefslogtreecommitdiff
path: root/packages/merchant-backoffice-ui/tests/hooks/swr/index.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'packages/merchant-backoffice-ui/tests/hooks/swr/index.tsx')
-rw-r--r--packages/merchant-backoffice-ui/tests/hooks/swr/index.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/merchant-backoffice-ui/tests/hooks/swr/index.tsx b/packages/merchant-backoffice-ui/tests/hooks/swr/index.tsx
index 1cf9220d6..655081711 100644
--- a/packages/merchant-backoffice-ui/tests/hooks/swr/index.tsx
+++ b/packages/merchant-backoffice-ui/tests/hooks/swr/index.tsx
@@ -28,6 +28,7 @@ interface TestingContextProps {
children?: ComponentChildren;
}
export function TestingContext({ children }: TestingContextProps): VNode {
+ const SC: any = SWRConfig
return (
<BackendContextProvider defaultUrl="http://backend" initialToken="token">
<InstanceContextProvider
@@ -38,7 +39,7 @@ export function TestingContext({ children }: TestingContextProps): VNode {
changeToken: () => null,
}}
>
- <SWRConfig value={{ provider: () => new Map() }}>{children}</SWRConfig>
+ <SC value={{ provider: () => new Map() }}>{children}</SC>
</InstanceContextProvider>
</BackendContextProvider>
);