Update paths

GitOrigin-RevId: 399c594dd1bbf739d91874df6be3b70e57fe01e3
This commit is contained in:
Andrew Rumble
2025-11-06 09:05:57 +00:00
committed by Copybot
parent 93b7274ea6
commit 4f02a85aa4
210 changed files with 529 additions and 533 deletions
@@ -1,8 +1,9 @@
import Settings from '@overleaf/settings'
import { expect } from 'chai'
import UserHelper from './helpers/User.mjs'
import { getSafeAdminDomainRedirect } from '../../../app/src/Features/Helpers/UrlHelper.js'
import UrlHelper from '../../../app/src/Features/Helpers/UrlHelper.mjs'
const { getSafeAdminDomainRedirect } = UrlHelper
const User = UserHelper.promises
describe('AdminPrivilegeAvailable', function () {
@@ -5,7 +5,7 @@ import logger from '@overleaf/logger'
import { ObjectId, db } from '../../../app/src/infrastructure/mongodb.js'
import fs from 'node:fs/promises'
import UserHelper from './helpers/User.mjs'
import UserGetter from '../../../app/src/Features/User/UserGetter.js'
import UserGetter from '../../../app/src/Features/User/UserGetter.mjs'
const User = UserHelper.promises
const TEST_FILE_PATH = '/tmp/test-users.txt'
@@ -3,7 +3,7 @@ import chai, { expect } from 'chai'
import chaiAsPromised from 'chai-as-promised'
import sinonChai from 'sinon-chai'
import { collectPastDueInvoices } from '../../../scripts/recurly/collect_paypal_past_due_invoice.mjs'
import RecurlyWrapper from '../../../app/src/Features/Subscription/RecurlyWrapper.js'
import RecurlyWrapper from '../../../app/src/Features/Subscription/RecurlyWrapper.mjs'
import OError from '@overleaf/o-error'
chai.use(chaiAsPromised)
@@ -3,7 +3,7 @@ import Async from 'async'
import User from './helpers/User.mjs'
import settings from '@overleaf/settings'
import CollaboratorsEmailHandler from '../../../app/src/Features/Collaborators/CollaboratorsEmailHandler.mjs'
import CollaboratorsInviteHelper from '../../../app/src/Features/Collaborators/CollaboratorsInviteHelper.js'
import CollaboratorsInviteHelper from '../../../app/src/Features/Collaborators/CollaboratorsInviteHelper.mjs'
import Features from '../../../app/src/infrastructure/Features.js'
import sinon from 'sinon'
@@ -2,7 +2,7 @@ import { expect } from 'chai'
import async from 'async'
import UserHelper from './helpers/User.mjs'
import redis from './helpers/redis.mjs'
import UserSessionsRedis from '../../../app/src/Features/User/UserSessionsRedis.js'
import UserSessionsRedis from '../../../app/src/Features/User/UserSessionsRedis.mjs'
const rclient = UserSessionsRedis.client()
describe('Sessions', function () {
@@ -1,4 +1,4 @@
import AuthenticationManager from '../../../app/src/Features/Authentication/AuthenticationManager.js'
import AuthenticationManager from '../../../app/src/Features/Authentication/AuthenticationManager.mjs'
import UserHelper from './helpers/UserHelper.mjs'
import Features from '../../../app/src/infrastructure/Features.js'
import { expect } from 'chai'
@@ -5,7 +5,7 @@ import Institution from './helpers/Institution.mjs'
import Subscription from './helpers/Subscription.mjs'
import Publisher from './helpers/Publisher.mjs'
import sinon from 'sinon'
import RecurlyClient from '../../../app/src/Features/Subscription/RecurlyClient.js'
import RecurlyClient from '../../../app/src/Features/Subscription/RecurlyClient.mjs'
describe('UserMembershipAuthorization', function () {
beforeEach(function (done) {
@@ -1,6 +1,6 @@
import { expect } from 'chai'
import MockSubscription from './Subscription.mjs'
import SubscriptionUpdater from '../../../../app/src/Features/Subscription/SubscriptionUpdater.js'
import SubscriptionUpdater from '../../../../app/src/Features/Subscription/SubscriptionUpdater.mjs'
import { Subscription as SubscriptionModel } from '../../../../app/src/models/Subscription.js'
import { DeletedSubscription as DeletedSubscriptionModel } from '../../../../app/src/models/DeletedSubscription.js'
import { promisifyClass } from '@overleaf/promise-utils'
@@ -7,8 +7,8 @@ import MockReCAPTCHAApi from '../mocks/MockReCaptchaApi.mjs'
import { gracefulShutdown } from '../../../../app/src/infrastructure/GracefulShutdown.js'
import Server from '../../../../app/src/infrastructure/Server.mjs'
import { injectRouteAfter } from './injectRoute.mjs'
import SplitTestHandler from '../../../../app/src/Features/SplitTests/SplitTestHandler.js'
import SplitTestSessionHandler from '../../../../app/src/Features/SplitTests/SplitTestSessionHandler.js'
import SplitTestHandler from '../../../../app/src/Features/SplitTests/SplitTestHandler.mjs'
import SplitTestSessionHandler from '../../../../app/src/Features/SplitTests/SplitTestSessionHandler.mjs'
import Modules from '../../../../app/src/infrastructure/Modules.js'
const app = Server.app
@@ -1,7 +1,7 @@
import mongodb from 'mongodb-legacy'
import Subscription from './Subscription.mjs'
import MockRecurlyApiClass from '../mocks/MockRecurlyApi.mjs'
import RecurlyWrapper from '../../../../app/src/Features/Subscription/RecurlyWrapper.js'
import RecurlyWrapper from '../../../../app/src/Features/Subscription/RecurlyWrapper.mjs'
import { promisifyClass } from '@overleaf/promise-utils'
const { ObjectId } = mongodb
@@ -1,7 +1,7 @@
import { db, ObjectId } from '../../../../app/src/infrastructure/mongodb.js'
import { expect } from 'chai'
import { callbackifyClass } from '@overleaf/promise-utils'
import SubscriptionUpdater from '../../../../app/src/Features/Subscription/SubscriptionUpdater.js'
import SubscriptionUpdater from '../../../../app/src/Features/Subscription/SubscriptionUpdater.mjs'
import PermissionsManager from '../../../../app/src/Features/Authorization/PermissionsManager.mjs'
import SSOConfigManager from '../../../../modules/group-settings/app/src/sso/SSOConfigManager.mjs'
import { Subscription as SubscriptionModel } from '../../../../app/src/models/Subscription.js'
@@ -3,8 +3,8 @@ import request from './request.js'
import settings from '@overleaf/settings'
import { db, ObjectId } from '../../../../app/src/infrastructure/mongodb.js'
import { User as UserModel } from '../../../../app/src/models/User.js'
import UserUpdater from '../../../../app/src/Features/User/UserUpdater.js'
import AuthenticationManager from '../../../../app/src/Features/Authentication/AuthenticationManager.js'
import UserUpdater from '../../../../app/src/Features/User/UserUpdater.mjs'
import AuthenticationManager from '../../../../app/src/Features/Authentication/AuthenticationManager.mjs'
import { promisifyClass } from '@overleaf/promise-utils'
import fs from 'node:fs'
import Path from 'node:path'
@@ -1,10 +1,10 @@
import { CookieJar } from 'tough-cookie'
import AuthenticationManager from '../../../../app/src/Features/Authentication/AuthenticationManager.js'
import AuthenticationManager from '../../../../app/src/Features/Authentication/AuthenticationManager.mjs'
import Settings from '@overleaf/settings'
import InstitutionsAPI from '../../../../app/src/Features/Institutions/InstitutionsAPI.js'
import InstitutionsAPI from '../../../../app/src/Features/Institutions/InstitutionsAPI.mjs'
import UserCreator from '../../../../app/src/Features/User/UserCreator.mjs'
import UserGetter from '../../../../app/src/Features/User/UserGetter.js'
import UserUpdater from '../../../../app/src/Features/User/UserUpdater.js'
import UserGetter from '../../../../app/src/Features/User/UserGetter.mjs'
import UserUpdater from '../../../../app/src/Features/User/UserUpdater.mjs'
import moment from 'moment'
import fetch from 'node-fetch'
import mongodb from 'mongodb-legacy'
@@ -7,7 +7,7 @@ import UserHelper from './UserHelper.mjs'
import SAMLHelper from './SAMLHelper.mjs'
import Settings from '@overleaf/settings'
import GroupUtils from '../../../../app/src/Features/Subscription/GroupUtils.mjs'
import UserGetter from '../../../../app/src/Features/User/UserGetter.js'
import UserGetter from '../../../../app/src/Features/User/UserGetter.mjs'
import { fileURLToPath } from 'node:url'
import { Subscription as SubscriptionModel } from '../../../../app/src/models/Subscription.js'
@@ -1,8 +1,3 @@
/* eslint-disable
n/handle-callback-err,
max-len,
no-unused-vars,
*/
// TODO: This file was created by bulk-decaffeinate.
// Fix any style issues and re-enable lint.
/*
@@ -11,11 +6,8 @@
* DS207: Consider shorter variations of null checks
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
*/
import Settings from '@overleaf/settings'
import logger from '@overleaf/logger'
import Async from 'async'
import UserSessionsRedis from '../../../../app/src/Features/User/UserSessionsRedis.js'
import UserSessionsRedis from '../../../../app/src/Features/User/UserSessionsRedis.mjs'
// rclient = redis.createClient(Settings.redis.web)
const rclient = UserSessionsRedis.client()
@@ -44,7 +36,7 @@ export default {
return callback(null)
}
const actions = sessionKeys.map(k => cb => rclient.del(k, err => cb(err)))
return Async.series(actions, (err, results) =>
return Async.series(actions, () =>
rclient.srem(sessionSetKey, sessionKeys, err => {
if (err) {
return callback(err)
@@ -20,14 +20,14 @@ describe('AnalyticsController', function () {
}
vi.doMock(
'../../../../app/src/Features/Analytics/AnalyticsManager.js',
'../../../../app/src/Features/Analytics/AnalyticsManager.mjs',
() => ({
default: ctx.AnalyticsManager,
})
)
vi.doMock(
'../../../../app/src/Features/Authentication/SessionManager.js',
'../../../../app/src/Features/Authentication/SessionManager.mjs',
() => ({
default: ctx.SessionManager,
})
@@ -24,7 +24,7 @@ describe('AnalyticsUTMTrackingMiddleware', function () {
}
vi.doMock(
'../../../../app/src/Features/Analytics/AnalyticsManager.js',
'../../../../app/src/Features/Analytics/AnalyticsManager.mjs',
() => ({
default: (ctx.AnalyticsManager = {
recordEventForSession: sinon.stub().resolves(),
@@ -2,7 +2,7 @@ import { beforeEach, describe, it, vi, expect } from 'vitest'
import sinon from 'sinon'
import Errors from '../../../../app/src/Features/Errors/Errors.js'
import PrivilegeLevels from '../../../../app/src/Features/Authorization/PrivilegeLevels.js'
import PublicAccessLevels from '../../../../app/src/Features/Authorization/PublicAccessLevels.js'
import PublicAccessLevels from '../../../../app/src/Features/Authorization/PublicAccessLevels.mjs'
import mongodb from 'mongodb-legacy'
const modulePath =
'../../../../app/src/Features/Authorization/AuthorizationManager.mjs'
@@ -29,7 +29,7 @@ describe('ChatController', function () {
default: ctx.settings,
}))
vi.doMock('../../../../app/src/Features/Chat/ChatApiHandler.js', () => ({
vi.doMock('../../../../app/src/Features/Chat/ChatApiHandler.mjs', () => ({
default: ctx.ChatApiHandler,
}))
@@ -38,14 +38,14 @@ describe('ChatController', function () {
}))
vi.doMock(
'../../../../app/src/Features/Editor/EditorRealTimeController.js',
'../../../../app/src/Features/Editor/EditorRealTimeController.mjs',
() => ({
default: ctx.EditorRealTimeController,
})
)
vi.doMock(
'../../../../app/src/Features/Authentication/SessionManager.js',
'../../../../app/src/Features/Authentication/SessionManager.mjs',
() => ({
default: ctx.SessionManager,
})
@@ -116,25 +116,25 @@ describe('CollaboratorsController', function () {
)
vi.doMock(
'../../../../app/src/Features/Errors/HttpErrorHandler.js',
'../../../../app/src/Features/Errors/HttpErrorHandler.mjs',
() => ({
default: ctx.HttpErrorHandler,
})
)
vi.doMock('../../../../app/src/Features/Tags/TagsHandler.js', () => ({
vi.doMock('../../../../app/src/Features/Tags/TagsHandler.mjs', () => ({
default: ctx.TagsHandler,
}))
vi.doMock(
'../../../../app/src/Features/Authentication/SessionManager.js',
'../../../../app/src/Features/Authentication/SessionManager.mjs',
() => ({
default: ctx.SessionManager,
})
)
vi.doMock(
'../../../../app/src/Features/TokenAccess/TokenAccessHandler.js',
'../../../../app/src/Features/TokenAccess/TokenAccessHandler.mjs',
() => ({
default: ctx.TokenAccessHandler,
})
@@ -152,7 +152,7 @@ describe('CollaboratorsController', function () {
}))
vi.doMock(
'../../../../app/src/Features/SplitTests/SplitTestHandler.js',
'../../../../app/src/Features/SplitTests/SplitTestHandler.mjs',
() => ({
default: ctx.SplitTestHandler,
})
@@ -143,7 +143,7 @@ describe('CollaboratorsInviteController', function () {
})
)
vi.doMock('../../../../app/src/Features/User/UserGetter.js', () => ({
vi.doMock('../../../../app/src/Features/User/UserGetter.mjs', () => ({
default: ctx.UserGetter,
}))
@@ -162,28 +162,28 @@ describe('CollaboratorsInviteController', function () {
)
vi.doMock(
'../../../../app/src/Features/Collaborators/CollaboratorsInviteGetter.js',
'../../../../app/src/Features/Collaborators/CollaboratorsInviteGetter.mjs',
() => ({
default: ctx.CollaboratorsInviteGetter,
})
)
vi.doMock(
'../../../../app/src/Features/Editor/EditorRealTimeController.js',
'../../../../app/src/Features/Editor/EditorRealTimeController.mjs',
() => ({
default: ctx.EditorRealTimeController,
})
)
vi.doMock(
'../../../../app/src/Features/Analytics/AnalyticsManager.js',
'../../../../app/src/Features/Analytics/AnalyticsManager.mjs',
() => ({
default: ctx.AnalyticsManger,
})
)
vi.doMock(
'../../../../app/src/Features/Authentication/SessionManager.js',
'../../../../app/src/Features/Authentication/SessionManager.mjs',
() => ({
default: ctx.SessionManager,
})
@@ -104,7 +104,7 @@ describe('CollaboratorsInviteHandler', function () {
})
)
vi.doMock('../../../../app/src/Features/User/UserGetter.js', () => ({
vi.doMock('../../../../app/src/Features/User/UserGetter.mjs', () => ({
default: ctx.UserGetter,
}))
@@ -113,14 +113,14 @@ describe('CollaboratorsInviteHandler', function () {
}))
vi.doMock(
'../../../../app/src/Features/Notifications/NotificationsBuilder.js',
'../../../../app/src/Features/Notifications/NotificationsBuilder.mjs',
() => ({
default: ctx.NotificationsBuilder,
})
)
vi.doMock(
'../../../../app/src/Features/Collaborators/CollaboratorsInviteHelper.js',
'../../../../app/src/Features/Collaborators/CollaboratorsInviteHelper.mjs',
() => ({
default: ctx.CollaboratorsInviteHelper,
})
@@ -134,7 +134,7 @@ describe('CollaboratorsInviteHandler', function () {
)
vi.doMock(
'../../../../app/src/Features/SplitTests/SplitTestHandler.js',
'../../../../app/src/Features/SplitTests/SplitTestHandler.mjs',
() => ({
default: ctx.SplitTestHandler,
})
@@ -93,11 +93,11 @@ describe('OwnershipTransferHandler', function () {
Project: ctx.ProjectModel,
}))
vi.doMock('../../../../app/src/Features/Tags/TagsHandler.js', () => ({
vi.doMock('../../../../app/src/Features/Tags/TagsHandler.mjs', () => ({
default: ctx.TagsHandler,
}))
vi.doMock('../../../../app/src/Features/User/UserGetter.js', () => ({
vi.doMock('../../../../app/src/Features/User/UserGetter.mjs', () => ({
default: ctx.UserGetter,
}))
@@ -115,7 +115,7 @@ describe('OwnershipTransferHandler', function () {
})
)
vi.doMock('../../../../app/src/Features/Email/EmailHandler.js', () => ({
vi.doMock('../../../../app/src/Features/Email/EmailHandler.mjs', () => ({
default: ctx.EmailHandler,
}))
@@ -184,7 +184,7 @@ describe('EditorHttpController', function () {
})
)
vi.doMock(
'../../../../app/src/Features/Project/ProjectEditorHandler.js',
'../../../../app/src/Features/Project/ProjectEditorHandler.mjs',
() => ({
default: ctx.ProjectEditorHandler,
})
@@ -211,19 +211,19 @@ describe('EditorHttpController', function () {
})
)
vi.doMock(
'../../../../app/src/Features/Collaborators/CollaboratorsInviteGetter.js',
'../../../../app/src/Features/Collaborators/CollaboratorsInviteGetter.mjs',
() => ({
default: ctx.CollaboratorsInviteGetter,
})
)
vi.doMock(
'../../../../app/src/Features/TokenAccess/TokenAccessHandler.js',
'../../../../app/src/Features/TokenAccess/TokenAccessHandler.mjs',
() => ({
default: ctx.TokenAccessHandler,
})
)
vi.doMock(
'../../../../app/src/Features/Authentication/SessionManager.js',
'../../../../app/src/Features/Authentication/SessionManager.mjs',
() => ({
default: ctx.SessionManager,
})
@@ -238,19 +238,19 @@ describe('EditorHttpController', function () {
})
)
vi.doMock(
'../../../../app/src/Features/Docstore/DocstoreManager.js',
'../../../../app/src/Features/Docstore/DocstoreManager.mjs',
() => ({
default: ctx.DocstoreManager,
})
)
vi.doMock(
'../../../../app/src/Features/Errors/HttpErrorHandler.js',
'../../../../app/src/Features/Errors/HttpErrorHandler.mjs',
() => ({
default: ctx.HttpErrorHandler,
})
)
vi.doMock(
'../../../../app/src/Features/SplitTests/SplitTestHandler.js',
'../../../../app/src/Features/SplitTests/SplitTestHandler.mjs',
() => ({
default: ctx.SplitTestHandler,
})
@@ -261,7 +261,7 @@ describe('EditorHttpController', function () {
default: {},
})
)
vi.doMock('../../../../app/src/Features/User/UserGetter.js', () => ({
vi.doMock('../../../../app/src/Features/User/UserGetter.mjs', () => ({
default: ctx.UserGetter,
}))
@@ -1,7 +1,7 @@
import { vi, expect } from 'vitest'
import MockResponse from '../helpers/MockResponse.js'
import MockRequest from '../helpers/MockRequest.js'
const modulePath = '../../../../app/src/Features/Errors/HttpErrorHandler.js'
const modulePath = '../../../../app/src/Features/Errors/HttpErrorHandler.mjs'
describe('HttpErrorHandler', function () {
beforeEach(async function (ctx) {
@@ -76,7 +76,7 @@ describe('HistoryController', function () {
}))
vi.doMock(
'../../../../app/src/Features/Authentication/SessionManager.js',
'../../../../app/src/Features/Authentication/SessionManager.mjs',
() => ({
default: ctx.SessionManager,
})
@@ -103,7 +103,7 @@ describe('HistoryController', function () {
})
)
vi.doMock('../../../../app/src/Features/User/UserGetter.js', () => ({
vi.doMock('../../../../app/src/Features/User/UserGetter.mjs', () => ({
default: (ctx.UserGetter = {}),
}))
@@ -2,7 +2,7 @@ import { vi, expect } from 'vitest'
import sinon from 'sinon'
import mongodb from 'mongodb-legacy'
import Errors from '../../../../app/src/Features/Errors/Errors.js'
import ProjectHelper from '../../../../app/src/Features/Project/ProjectHelper.js'
import ProjectHelper from '../../../../app/src/Features/Project/ProjectHelper.mjs'
const { ObjectId } = mongodb
@@ -10,7 +10,7 @@ describe('ReferalAllocator', function () {
}))
vi.doMock(
'../../../../app/src/Features/Subscription/FeaturesUpdater.js',
'../../../../app/src/Features/Subscription/FeaturesUpdater.mjs',
() => ({
default: (ctx.FeaturesUpdater = {}),
})
@@ -8,7 +8,7 @@ const modulePath = '../../../../app/src/Features/SplitTests/SplitTestMiddleware'
describe('SplitTestMiddleware', function () {
beforeEach(async function (ctx) {
vi.doMock(
'../../../../app/src/Features/SplitTests/SplitTestHandler.js',
'../../../../app/src/Features/SplitTests/SplitTestHandler.mjs',
() => ({
default: (ctx.SplitTestHandler = {
promises: {
@@ -1,16 +1,16 @@
import { vi, expect } from 'vitest'
import sinon from 'sinon'
import recurly from 'recurly'
import PaymentProviderEntities from '../../../../app/src/Features/Subscription/PaymentProviderEntities.mjs'
import {
const {
PaymentProviderSubscription,
PaymentProviderSubscriptionChangeRequest,
PaymentProviderSubscriptionUpdateRequest,
PaymentProviderSubscriptionAddOnUpdate,
PaymentProviderAccount,
PaymentProviderCoupon,
} from '../../../../app/src/Features/Subscription/PaymentProviderEntities.js'
} = PaymentProviderEntities
const MODULE_PATH = '../../../../app/src/Features/Subscription/RecurlyClient'
describe('RecurlyClient', function () {
@@ -217,7 +217,7 @@ describe('SubscriptionGroupHandler', function () {
vi.importActual('../../../../app/src/Features/Errors/Errors.js')
)
vi.doMock(
'../../../../app/src/Features/Subscription/SubscriptionUpdater.js',
'../../../../app/src/Features/Subscription/SubscriptionUpdater.mjs',
() => ({
default: ctx.SubscriptionUpdater,
})
@@ -1,8 +1,9 @@
import { expect, vi } from 'vitest'
import sinon from 'sinon'
import { PaymentProviderSubscription } from '../../../../app/src/Features/Subscription/PaymentProviderEntities.js'
import PaymentProviderEntities from '../../../../app/src/Features/Subscription/PaymentProviderEntities.mjs'
import SubscriptionHelper from '../../../../app/src/Features/Subscription/SubscriptionHelper.js'
const { PaymentProviderSubscription } = PaymentProviderEntities
const MODULE_PATH =
'../../../../app/src/Features/Subscription/SubscriptionHandler'
@@ -1,13 +1,14 @@
import { vi, assert } from 'vitest'
import sinon from 'sinon'
import {
import PaymentProviderEntities from '../../../../app/src/Features/Subscription/PaymentProviderEntities.mjs'
import SubscriptionHelper from '../../../../app/src/Features/Subscription/SubscriptionHelper.js'
const {
PaymentProviderAccount,
PaymentProviderSubscription,
PaymentProviderSubscriptionAddOn,
PaymentProviderSubscriptionChange,
} from '../../../../app/src/Features/Subscription/PaymentProviderEntities.js'
import SubscriptionHelper from '../../../../app/src/Features/Subscription/SubscriptionHelper.js'
} = PaymentProviderEntities
const modulePath =
'../../../../app/src/Features/Subscription/SubscriptionViewModelBuilder.mjs'
@@ -1,6 +1,6 @@
import { vi, expect } from 'vitest'
import sinon from 'sinon'
import ProjectHelper from '../../../../app/src/Features/Project/ProjectHelper.js'
import ProjectHelper from '../../../../app/src/Features/Project/ProjectHelper.mjs'
const modulePath =
'../../../../app/src/Features/Templates/TemplatesController.mjs'
@@ -93,7 +93,7 @@ describe('TpdsUpdateSender', function () {
})
)
vi.doMock('../../../../app/src/Features/User/UserGetter.js', () => ({
vi.doMock('../../../../app/src/Features/User/UserGetter.mjs', () => ({
default: ctx.UserGetter,
}))
@@ -4,8 +4,9 @@ import mongodb from 'mongodb-legacy'
import MockRequest from '../helpers/MockRequest.js'
import MockResponse from '../helpers/MockResponse.js'
import PrivilegeLevels from '../../../../app/src/Features/Authorization/PrivilegeLevels.js'
import { getSafeRedirectPath } from '../../../../app/src/Features/Helpers/UrlHelper.js'
import UrlHelper from '../../../../app/src/Features/Helpers/UrlHelper.mjs'
const { getSafeRedirectPath } = UrlHelper
const ObjectId = mongodb.ObjectId
const MODULE_PATH =
@@ -1,7 +1,7 @@
import { expect, vi, describe, it, beforeEach } from 'vitest'
import MockRequest from '../helpers/MockRequestVitest.mjs'
import MockResponse from '../helpers/MockResponseVitest.mjs'
import EntityConfigs from '../../../../app/src/Features/UserMembership/UserMembershipEntityConfigs.js'
import EntityConfigs from '../../../../app/src/Features/UserMembership/UserMembershipEntityConfigs.mjs'
import Errors from '../../../../app/src/Features/Errors/Errors.js'
import UserMembershipErrors from '../../../../app/src/Features/UserMembership/UserMembershipErrors.mjs'
@@ -1,6 +1,6 @@
import { vi, expect } from 'vitest'
import mongodb from 'mongodb-legacy'
import EntityConfigs from '../../../../app/src/Features/UserMembership/UserMembershipEntityConfigs.js'
import EntityConfigs from '../../../../app/src/Features/UserMembership/UserMembershipEntityConfigs.mjs'
import UserMembershipErrors from '../../../../app/src/Features/UserMembership/UserMembershipErrors.mjs'
const { ObjectId } = mongodb