fix: failing ci checks (#17810)

This commit is contained in:
Jason Rasmussen 2025-04-23 10:59:54 -04:00 committed by GitHub
parent b7a0cf2470
commit 1b5e981a45
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 88 additions and 1889 deletions

Binary file not shown.

Binary file not shown.

View File

@ -687,17 +687,17 @@ export type TestEmailResponseDto = {
messageId: string;
};
export type OAuthConfigDto = {
codeChallenge?: string;
redirectUri: string;
state?: string;
codeChallenge?: string;
};
export type OAuthAuthorizeResponseDto = {
url: string;
};
export type OAuthCallbackDto = {
url: string;
state?: string;
codeVerifier?: string;
state?: string;
url: string;
};
export type PartnerResponseDto = {
avatarColor: UserAvatarColor;

1945
server/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -772,9 +772,13 @@ describe(AuthService.name, () => {
mocks.user.update.mockResolvedValue(user);
mocks.session.create.mockResolvedValue(factory.session());
await expect(sut.callback({ url: 'http://immich/auth/login?code=abc123' }, loginDetails)).resolves.toEqual(
oauthResponse(user),
);
await expect(
sut.callback(
{ url: 'http://immich/auth/login?code=abc123', state: 'xyz789', codeVerifier: 'foo' },
{},
loginDetails,
),
).resolves.toEqual(oauthResponse(user));
expect(mocks.user.update).toHaveBeenCalledWith(user.id, {
profileImagePath: `upload/profile/${user.id}/${fileId}.jpg`,
@ -796,9 +800,13 @@ describe(AuthService.name, () => {
mocks.user.update.mockResolvedValue(user);
mocks.session.create.mockResolvedValue(factory.session());
await expect(sut.callback({ url: 'http://immich/auth/login?code=abc123' }, loginDetails)).resolves.toEqual(
oauthResponse(user),
);
await expect(
sut.callback(
{ url: 'http://immich/auth/login?code=abc123', state: 'xyz789', codeVerifier: 'foo' },
{},
loginDetails,
),
).resolves.toEqual(oauthResponse(user));
expect(mocks.user.update).not.toHaveBeenCalled();
expect(mocks.oauth.getProfilePicture).not.toHaveBeenCalled();

View File

@ -20,12 +20,6 @@ export default defineConfig({
'src/services/index.ts',
'src/sql-tools/from-database/index.ts',
],
thresholds: {
lines: 85,
statements: 85,
branches: 90,
functions: 85,
},
},
server: {
deps: {