[experimental] feat(ee): GitHub permission syncing #692
Triggered via pull request
September 19, 2025 22:46
Status
Failure
Total duration
1m 21s
Artifacts
–
Annotations
10 errors
|
src/withAuthV2.test.ts > withAuthV2 > should return a service error if the user is a guest of the organization:
packages/web/src/withAuthV2.ts#L91
Error: [vitest] No "userScopedPrismaClientExtension" export is defined on the "@/prisma" 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("@/prisma"), async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ getAuthContext src/withAuthV2.ts:91:44
❯ Module.withAuthV2 src/withAuthV2.ts:28:25
❯ src/withAuthV2.test.ts:435:24
|
|
src/withAuthV2.test.ts > withAuthV2 > should return a service error if the user is a member of the organization but does not have a valid session:
packages/web/src/withAuthV2.ts#L91
Error: [vitest] No "userScopedPrismaClientExtension" export is defined on the "@/prisma" 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("@/prisma"), async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ getAuthContext src/withAuthV2.ts:91:44
❯ Module.withAuthV2 src/withAuthV2.ts:28:25
❯ src/withAuthV2.test.ts:412:24
|
|
src/withAuthV2.test.ts > withAuthV2 > should call the callback with the auth context object if a valid session is present and the user is a member of the organization with OWNER role (api key):
packages/web/src/withAuthV2.ts#L91
Error: [vitest] No "userScopedPrismaClientExtension" export is defined on the "@/prisma" 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("@/prisma"), async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ getAuthContext src/withAuthV2.ts:91:44
❯ Module.withAuthV2 src/withAuthV2.ts:28:25
❯ src/withAuthV2.test.ts:382:24
|
|
src/withAuthV2.test.ts > withAuthV2 > should call the callback with the auth context object if a valid session is present and the user is a member of the organization (api key):
packages/web/src/withAuthV2.ts#L91
Error: [vitest] No "userScopedPrismaClientExtension" export is defined on the "@/prisma" 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("@/prisma"), async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ getAuthContext src/withAuthV2.ts:91:44
❯ Module.withAuthV2 src/withAuthV2.ts:28:25
❯ src/withAuthV2.test.ts:347:24
|
|
src/withAuthV2.test.ts > withAuthV2 > should call the callback with the auth context object if a valid session is present and the user is a member of the organization with OWNER role:
packages/web/src/withAuthV2.ts#L91
Error: [vitest] No "userScopedPrismaClientExtension" export is defined on the "@/prisma" 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("@/prisma"), async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ getAuthContext src/withAuthV2.ts:91:44
❯ Module.withAuthV2 src/withAuthV2.ts:28:25
❯ src/withAuthV2.test.ts:312:24
|
|
src/withAuthV2.test.ts > withAuthV2 > should call the callback with the auth context object if a valid session is present and the user is a member of the organization:
packages/web/src/withAuthV2.ts#L91
Error: [vitest] No "userScopedPrismaClientExtension" export is defined on the "@/prisma" 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("@/prisma"), async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ getAuthContext src/withAuthV2.ts:91:44
❯ Module.withAuthV2 src/withAuthV2.ts:28:25
❯ src/withAuthV2.test.ts:282:24
|
|
src/withAuthV2.test.ts > getAuthContext > should return a auth context object if no auth session is present. The role should be GUEST and the user should be undefined.:
packages/web/src/withAuthV2.ts#L91
Error: [vitest] No "userScopedPrismaClientExtension" export is defined on the "@/prisma" 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("@/prisma"), async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ Module.getAuthContext src/withAuthV2.ts:91:44
❯ src/withAuthV2.test.ts:253:29
|
|
src/withAuthV2.test.ts > getAuthContext > should return a auth context object if a valid session is present and the user is not a member of the organization. The role should be GUEST.:
packages/web/src/withAuthV2.ts#L91
Error: [vitest] No "userScopedPrismaClientExtension" export is defined on the "@/prisma" 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("@/prisma"), async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ Module.getAuthContext src/withAuthV2.ts:91:44
❯ src/withAuthV2.test.ts:235:29
|
|
src/withAuthV2.test.ts > getAuthContext > should return a auth context object if a valid session is present and the user is a member of the organization with OWNER role:
packages/web/src/withAuthV2.ts#L91
Error: [vitest] No "userScopedPrismaClientExtension" export is defined on the "@/prisma" 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("@/prisma"), async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ Module.getAuthContext src/withAuthV2.ts:91:44
❯ src/withAuthV2.test.ts:211:29
|
|
src/withAuthV2.test.ts > getAuthContext > should return a auth context object if a valid session is present and the user is a member of the organization:
packages/web/src/withAuthV2.ts#L91
Error: [vitest] No "userScopedPrismaClientExtension" export is defined on the "@/prisma" 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("@/prisma"), async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
❯ Module.getAuthContext src/withAuthV2.ts:91:44
❯ src/withAuthV2.test.ts:182:29
|