mirror of
https://github.com/supabase/supabase.git
synced 2026-10-14 21:59:16 +03:00
fix missing listen call for msw, resolve test type error
This commit is contained in:
1 parent
01870d9f7f
commit
38b2fa9dc5
2 files changed
+2
-1
No files matched your search
@@ -32,7 +32,7 @@ vi.mock('lib/gotrue', async (importOriginal) => ({
|
||||
beforeEach(() => {
|
||||
addAPIMock({
|
||||
method: 'get',
|
||||
path: '/platform/projects/default/analytics/endpoints/logs.all',
|
||||
path: '/platform/projects/:ref/analytics/endpoints/logs.all',
|
||||
response: LOGS_API_MOCKS,
|
||||
})
|
||||
})
|
||||
|
||||
@@ -16,6 +16,7 @@ import { mswServer } from './lib/msw'
|
||||
// })
|
||||
|
||||
beforeAll(() => {
|
||||
mswServer.listen({ onUnhandledRequest: `error` })
|
||||
vi.mock('next/router', () => require('next-router-mock'))
|
||||
vi.mock('next/navigation', async () => {
|
||||
const actual = await vi.importActual('next/navigation')
|
||||
|
||||
Reference in new issue
Block a user