Files
supabase/apps/studio/tests/features/logs/logs.mocks.ts
3c588294a6 Improve Integration Test Setup and re-add LogPreviewer tests (#35358)
* fix logs previewer and msw

* refactor api mocking for better dx

* update readme

* comment out error handler for vitest

* rm unnecessary tests

* fix custom render nuqs type

* add logs search test

* rm unnecessary import

* update readme with customRender and customRednerHook

* rm unnecessary api handler

* Move the NODE_ENV to the studio build command in turbo.json.

* Update apps/studio/tests/README.md

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>

* add cursor rule

---------

Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2025-05-06 09:50:56 +02:00

23 lines
396 B
TypeScript

export const LOGS_API_MOCKS = {
result: [
{
id: 'uuid',
event_message: 'foobar',
timestamp: 1298085933,
error_count: 1,
warning_count: 2,
ok_count: 3,
count: 2,
},
{
id: 'uuid2',
event_message: 'foobar',
timestamp: 1298085933,
error_count: 1,
warning_count: 2,
ok_count: 3,
count: 2,
},
],
}