Migrate Vitest store tests from vi.mock to MSW request handlers

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-22 07:48:53 +08:00
parent 7e052f0d36
commit 3918755b7c
8 changed files with 554 additions and 348 deletions

View File

@@ -89,6 +89,9 @@ export default defineConfig(({ mode }) => {
test: {
globals: true,
environment: "jsdom",
environmentOptions: {
jsdom: { url: "http://localhost:3000" },
},
setupFiles: ["./tests/setup-msw.js"],
// reporter: ['text', 'json', 'html', 'vue'],
},