2
0

refactor(tests): ️ Add msw and mock authentication

This commit is contained in:
Baptiste Arnaud
2022-02-12 10:12:43 +01:00
parent d19b26e7de
commit b1f54b77c6
15 changed files with 789 additions and 129 deletions

View File

@ -15,6 +15,9 @@ import { TypebotContext } from 'contexts/TypebotContext'
import { useRouter } from 'next/router'
import { KBarProvider } from 'kbar'
import { actions } from 'libs/kbar'
import { enableMocks } from 'mocks'
if (process.env.NEXT_PUBLIC_AUTH_MOCKING === 'enabled') enableMocks()
const App = ({ Component, pageProps }: AppProps) => {
useRouterProgressBar()