Skip to content

Commit d7e3c50

Browse files
committed
fix(backend): use relative imports instead of bare 'src/...' paths
Vitest 4 no longer resolves bare 'src/...' specifiers, breaking test loading in @clerk/backend.
1 parent f4bcbe3 commit d7e3c50

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

packages/backend/src/api/endpoints/JwtTemplatesApi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { ClerkPaginationRequest } from '@clerk/shared/types';
2-
import { joinPaths } from 'src/util/path';
2+
import { joinPaths } from '../../util/path';
33

44
import type { DeletedObject, JwtTemplate } from '../resources';
55
import type { PaginatedResourceResponse } from '../resources/Deserializer';

packages/backend/src/api/endpoints/WaitlistEntryApi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { ClerkPaginationRequest } from '@clerk/shared/types';
2-
import { joinPaths } from 'src/util/path';
2+
import { joinPaths } from '../../util/path';
33

44
import type { DeletedObject } from '../resources/DeletedObject';
55
import type { PaginatedResourceResponse } from '../resources/Deserializer';

packages/backend/src/webhooks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { getEnvVariable } from '@clerk/shared/getEnvVariable';
2-
import { errorThrower } from 'src/util/shared';
2+
import { errorThrower } from './util/shared';
33
import { Webhook } from 'standardwebhooks';
44

55
import type { WebhookEvent } from './api/resources/Webhooks';

0 commit comments

Comments
 (0)