feat: add MSW for integration test mocking

Install Mock Service Worker (MSW) and configure it for vitest.
Write one integration test for usePurchases hook using MSW.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
Barcode Betty
2026-03-30 19:57:25 +00:00
committed by Barcode Betty
parent b18cb24ec4
commit 98d95a661a
6 changed files with 800 additions and 462 deletions
+4
View File
@@ -0,0 +1,4 @@
import { setupServer } from 'msw/node'
import { handlers } from './handlers'
export const server = setupServer(...handlers)