diff --git a/src/features/instance/databases/modals/AddTableRowModal.test.tsx b/src/features/instance/databases/modals/AddTableRowModal.test.tsx new file mode 100644 index 000000000..37a23b0df --- /dev/null +++ b/src/features/instance/databases/modals/AddTableRowModal.test.tsx @@ -0,0 +1,136 @@ +/** + * @vitest-environment jsdom + */ +import { AddTableRowModal } from '@/features/instance/databases/modals/AddTableRowModal'; +import type { InstanceTable } from '@/integrations/api/api.patch'; +import { WORKER_FREE_JSON_LANGUAGE_ID } from '@/lib/monaco/workerFreeJsonLanguage'; +import { MAX_WORKER_MODEL_CHARS } from '@/lib/monaco/workerLimits'; +import { cleanup, fireEvent, render, screen } from '@testing-library/react'; +import { toast } from 'sonner'; +import { afterEach, beforeAll, describe, expect, it, vi } from 'vitest'; + +const { mutate } = vi.hoisted(() => ({ mutate: vi.fn() })); + +// Monaco can't load in jsdom; stub the editor with a