test: add dashboard redesign tests (refs #201)
All checks were successful
Deploy to Staging / Build Images (pull_request) Successful in 3m22s
Deploy to Staging / Deploy to Staging (pull_request) Successful in 51s
Deploy to Staging / Verify Staging (pull_request) Successful in 8s
Deploy to Staging / Notify Staging Ready (pull_request) Successful in 7s
Deploy to Staging / Notify Staging Failure (pull_request) Has been skipped

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Eric Gullickson
2026-02-15 11:03:52 -06:00
parent 654a7f0fc3
commit f6684e72c0
9 changed files with 748 additions and 65 deletions

View File

@@ -0,0 +1,15 @@
/**
* @ai-summary Manual mock for API client used in Jest tests
* Prevents import.meta.env errors in jsdom environment
*/
export const apiClient = {
get: jest.fn().mockResolvedValue({ data: [] }),
post: jest.fn().mockResolvedValue({ data: {} }),
put: jest.fn().mockResolvedValue({ data: {} }),
delete: jest.fn().mockResolvedValue({}),
interceptors: {
request: { use: jest.fn() },
response: { use: jest.fn() },
},
};