refactor(imports): replace relative imports with path aliases (#2741)

This commit is contained in:
Hampus authored and GitHub committed 2026-09-13 20:18:22 +02:00
1 parent a59b80ce11
commit 84dcf6b8a8
1834 files changed
+11601 -10725

No files matched your search

@@ -32,7 +32,9 @@ vi.mock('@app/features/auth/state/SudoPrompt', () => ({isAbortError: () => false
const {APIErrorCodes} = await import('@fluxer/constants/src/ApiErrorCodes');
const {HttpError} = await import('@app/features/platform/types/EndpointError');
const {resolveRequiredActionErrorMessage} = await import('./RequiredActionShared');
const {resolveRequiredActionErrorMessage} = await import(
'@app/features/auth/components/modals/required_action/RequiredActionShared'
);
const {
ENTER_VALID_PHONE_DESCRIPTOR,
PHONE_CANNOT_BE_USED_DESCRIPTOR,
@@ -44,7 +46,7 @@ const {
PHONE_NOT_MOBILE_DESCRIPTOR,
SOMETHING_WENT_WRONG_TRY_AGAIN_DESCRIPTOR,
TOO_MANY_ATTEMPTS_DESCRIPTOR,
} = await import('./RequiredActionDescriptors');
} = await import('@app/features/auth/components/modals/required_action/RequiredActionDescriptors');
const i18n = setupI18n({locale: 'en', messages: {en: {}}});
@@ -17,7 +17,9 @@ vi.mock('@app/features/app/config/Config', () => ({
},
}));
const {buildPhoneGateEscapeConfirmCopy, buildPhoneGateEscapeHint} = await import('./RequiredActionEscapeCopy');
const {buildPhoneGateEscapeConfirmCopy, buildPhoneGateEscapeHint} = await import(
'@app/features/auth/components/modals/required_action/RequiredActionEscapeCopy'
);
const i18n = setupI18n({locale: 'en', messages: {en: {}}});
@@ -1,12 +1,12 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
import {describe, expect, it} from 'vitest';
import {
createAuthorizeSnapshot,
getAuthorizeStateValue,
selectAuthorizePhase,
transitionAuthorizeSnapshot,
} from './authorizeMachine';
} from '@app/features/auth/components/pages/oauth_authorize_page/state/authorizeMachine';
import {describe, expect, it} from 'vitest';
describe('authorizeMachine', () => {
it('moves from loading into review and through bot invite success', () => {