feat(tools): added download file tool for onedrive, google drive, and slack; added move email tool for gmail and outlook #5319
ci.yml
on: pull_request
Test and Build
/
Test and Build
33s
Matrix: Build AMD64
Matrix: Build ARM64 (GHCR Only)
Deploy Trigger.dev
/
Deploy to Trigger.dev
Process Docs
/
Process Documentation Embeddings
Matrix: Create GHCR Manifests
Annotations
10 errors
|
app/api/copilot/chat/route.test.ts > Copilot Chat API Route > GET > should return 400 when workflowId is missing:
apps/sim/lib/environment.ts#L25
Error: [vitest] No "getEnv" export is defined on the "@/lib/env" mock. Did you forget to return it from "vi.mock"?
If you need to partially mock a module, you can use "importOriginal" helper inside:
vi.mock(import("@/lib/env"), async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ lib/environment.ts:25:3
❯ lib/urls/utils.ts:2:1
|
|
app/api/copilot/chat/route.test.ts > Copilot Chat API Route > GET > should return 401 when user is not authenticated:
apps/sim/lib/environment.ts#L25
Error: [vitest] No "getEnv" export is defined on the "@/lib/env" mock. Did you forget to return it from "vi.mock"?
If you need to partially mock a module, you can use "importOriginal" helper inside:
vi.mock(import("@/lib/env"), async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ lib/environment.ts:25:3
❯ lib/urls/utils.ts:2:1
|
|
app/api/copilot/chat/route.test.ts > Copilot Chat API Route > POST > should use ask mode when specified:
apps/sim/lib/environment.ts#L25
Error: [vitest] No "getEnv" export is defined on the "@/lib/env" mock. Did you forget to return it from "vi.mock"?
If you need to partially mock a module, you can use "importOriginal" helper inside:
vi.mock(import("@/lib/env"), async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ lib/environment.ts:25:3
❯ lib/urls/utils.ts:2:1
|
|
app/api/copilot/chat/route.test.ts > Copilot Chat API Route > POST > should handle database errors during chat creation:
apps/sim/lib/environment.ts#L25
Error: [vitest] No "getEnv" export is defined on the "@/lib/env" mock. Did you forget to return it from "vi.mock"?
If you need to partially mock a module, you can use "importOriginal" helper inside:
vi.mock(import("@/lib/env"), async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ lib/environment.ts:25:3
❯ lib/urls/utils.ts:2:1
|
|
app/api/copilot/chat/route.test.ts > Copilot Chat API Route > POST > should handle sim agent API errors:
apps/sim/lib/environment.ts#L25
Error: [vitest] No "getEnv" export is defined on the "@/lib/env" mock. Did you forget to return it from "vi.mock"?
If you need to partially mock a module, you can use "importOriginal" helper inside:
vi.mock(import("@/lib/env"), async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ lib/environment.ts:25:3
❯ lib/urls/utils.ts:2:1
|
|
app/api/copilot/chat/route.test.ts > Copilot Chat API Route > POST > should include implicit feedback in messages:
apps/sim/lib/environment.ts#L25
Error: [vitest] No "getEnv" export is defined on the "@/lib/env" mock. Did you forget to return it from "vi.mock"?
If you need to partially mock a module, you can use "importOriginal" helper inside:
vi.mock(import("@/lib/env"), async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ lib/environment.ts:25:3
❯ lib/urls/utils.ts:2:1
|
|
app/api/copilot/chat/route.test.ts > Copilot Chat API Route > POST > should load existing chat and include conversation history:
apps/sim/lib/environment.ts#L25
Error: [vitest] No "getEnv" export is defined on the "@/lib/env" mock. Did you forget to return it from "vi.mock"?
If you need to partially mock a module, you can use "importOriginal" helper inside:
vi.mock(import("@/lib/env"), async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ lib/environment.ts:25:3
❯ lib/urls/utils.ts:2:1
|
|
app/api/copilot/chat/route.test.ts > Copilot Chat API Route > POST > should handle new chat creation and forward to sim agent:
apps/sim/lib/environment.ts#L25
Error: [vitest] No "getEnv" export is defined on the "@/lib/env" mock. Did you forget to return it from "vi.mock"?
If you need to partially mock a module, you can use "importOriginal" helper inside:
vi.mock(import("@/lib/env"), async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ lib/environment.ts:25:3
❯ lib/urls/utils.ts:2:1
|
|
app/api/copilot/chat/route.test.ts > Copilot Chat API Route > POST > should return 400 for invalid request body:
apps/sim/lib/environment.ts#L25
Error: [vitest] No "getEnv" export is defined on the "@/lib/env" mock. Did you forget to return it from "vi.mock"?
If you need to partially mock a module, you can use "importOriginal" helper inside:
vi.mock(import("@/lib/env"), async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ lib/environment.ts:25:3
❯ lib/urls/utils.ts:2:1
|
|
app/api/copilot/chat/route.test.ts > Copilot Chat API Route > POST > should return 401 when user is not authenticated:
apps/sim/lib/environment.ts#L25
Error: [vitest] No "getEnv" export is defined on the "@/lib/env" mock. Did you forget to return it from "vi.mock"?
If you need to partially mock a module, you can use "importOriginal" helper inside:
vi.mock(import("@/lib/env"), async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ lib/environment.ts:25:3
❯ lib/urls/utils.ts:2:1
|