feat: initial setup with WhatsApp CRM apps and sync services
This commit is contained in:
19
apps/whatsapp-crm/tests/setup.ts
Normal file
19
apps/whatsapp-crm/tests/setup.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
import '@testing-library/jest-dom'
|
||||
import { cleanup } from '@testing-library/react'
|
||||
|
||||
afterEach(() => {
|
||||
cleanup()
|
||||
})
|
||||
|
||||
const mockRouter = {
|
||||
push: jest.fn(),
|
||||
replace: jest.fn(),
|
||||
prefetch: jest.fn(),
|
||||
back: jest.fn(),
|
||||
}
|
||||
|
||||
jest.mock('next/navigation', () => ({
|
||||
useRouter: () => mockRouter,
|
||||
useSearchParams: () => new URLSearchParams(),
|
||||
usePathname: () => '/',
|
||||
}))
|
||||
Reference in New Issue
Block a user