mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 09:25:06 +03:00
chore(studio}: enforce import order, remove bare import specifiers (#44585)
This commit is contained in:
1 parent
c6b5a1ad5b
commit
205cbe7d26
445 files changed
+2503
-2320
No files matched your search
@@ -1,12 +1,10 @@
|
||||
import { UIMessage } from 'ai'
|
||||
import { sanitizeMessagePart } from 'lib/ai/tools/tool-sanitizer'
|
||||
import { expect, test, vi } from 'vitest'
|
||||
|
||||
// End of third-party imports
|
||||
|
||||
import generateV4 from '../../pages/api/ai/sql/generate-v4'
|
||||
import { sanitizeMessagePart } from '@/lib/ai/tools/tool-sanitizer'
|
||||
|
||||
vi.mock('lib/ai/tools/tool-sanitizer', () => ({
|
||||
vi.mock('@/lib/ai/tools/tool-sanitizer', () => ({
|
||||
sanitizeMessagePart: vi.fn((part) => part),
|
||||
}))
|
||||
|
||||
@@ -45,7 +43,7 @@ test('generateV4 calls the tool sanitizer', async () => {
|
||||
setHeader: vi.fn(() => mockRes),
|
||||
}
|
||||
|
||||
vi.mock('lib/ai/ai-details', () => ({
|
||||
vi.mock('@/lib/ai/ai-details', () => ({
|
||||
getOrgAIDetails: vi.fn().mockResolvedValue({
|
||||
aiOptInLevel: 'schema_and_log_and_data',
|
||||
hasAccessToAdvanceModel: true,
|
||||
@@ -57,18 +55,18 @@ test('generateV4 calls the tool sanitizer', async () => {
|
||||
}),
|
||||
}))
|
||||
|
||||
vi.mock('lib/ai/model', () => ({
|
||||
vi.mock('@/lib/ai/model', () => ({
|
||||
getModel: vi.fn().mockResolvedValue({
|
||||
modelParams: { model: {} },
|
||||
promptProviderOptions: {},
|
||||
}),
|
||||
}))
|
||||
|
||||
vi.mock('data/sql/execute-sql-query', () => ({
|
||||
vi.mock('@/data/sql/execute-sql-query', () => ({
|
||||
executeSql: vi.fn().mockResolvedValue({ result: [] }),
|
||||
}))
|
||||
|
||||
vi.mock('lib/ai/tools', () => ({
|
||||
vi.mock('@/lib/ai/tools', () => ({
|
||||
getTools: vi.fn().mockResolvedValue({}),
|
||||
}))
|
||||
|
||||
|
||||
Reference in new issue
Block a user