diff --git a/packages/core/src/routes/sign-in-experience/index.test.ts b/packages/core/src/routes/sign-in-experience/index.test.ts index 4304594e4..b4101bd7b 100644 --- a/packages/core/src/routes/sign-in-experience/index.test.ts +++ b/packages/core/src/routes/sign-in-experience/index.test.ts @@ -1,9 +1,6 @@ import type { SignInExperience, CreateSignInExperience } from '@logto/schemas'; import { pickDefault, createMockUtils } from '@logto/shared/esm'; -import { MockTenant } from '#src/test-utils/tenant.js'; -import { createRequester } from '#src/utils/test-utils.js'; - import { mockFacebookConnector, mockGithubConnector, @@ -20,6 +17,8 @@ import { mockPrivacyPolicyUrl, mockDemoSocialConnector, } from '#src/__mocks__/index.js'; +import { MockTenant } from '#src/test-utils/tenant.js'; +import { createRequester } from '#src/utils/test-utils.js'; const { jest } = import.meta; const { mockEsmWithActual } = createMockUtils(jest); @@ -57,8 +56,12 @@ const mockDeleteConnectorById = jest.fn(); const tenantContext = new MockTenant( undefined, - { signInExperiences, customPhrases: { findAllCustomLanguageTags: async () => [] } }, - { getLogtoConnectors: async () => logtoConnectors }, + { + signInExperiences, + customPhrases: { findAllCustomLanguageTags: async () => [] }, + connectors: { deleteConnectorById: mockDeleteConnectorById }, + }, + { getLogtoConnectors: mockGetLogtoConnectors }, { signInExperiences: { validateLanguageInfo } } ); diff --git a/packages/core/src/routes/sign-in-experience/index.ts b/packages/core/src/routes/sign-in-experience/index.ts index b8c5b027d..ae7467e3f 100644 --- a/packages/core/src/routes/sign-in-experience/index.ts +++ b/packages/core/src/routes/sign-in-experience/index.ts @@ -62,6 +62,8 @@ export default function signInExperiencesRoutes( ) ); + console.log('???', socialSignInConnectorTargets, filteredSocialSignInConnectorTargets); + if (signUp) { validateSignUp(signUp, connectors); }