Merge pull request #29659 from overleaf/revert-29656-revert-29521-ar-models-es-conversion

Revert "Revert "[web] Convert models and self-referential test files to ESM ""

GitOrigin-RevId: f64000ae31d298b075a8722dfc51f294c71bc021
This commit is contained in:
Andrew Rumble
2025-11-18 09:04:56 +00:00
committed by Copybot
parent f3d0c6920f
commit 394c60f2cf
203 changed files with 893 additions and 902 deletions
@@ -6,7 +6,7 @@ import logger from '@overleaf/logger'
import UserRegistrationHandler from '../../../../app/src/Features/User/UserRegistrationHandler.mjs'
import EmailHandler from '../../../../app/src/Features/Email/EmailHandler.mjs'
import UserGetter from '../../../../app/src/Features/User/UserGetter.mjs'
import { User } from '../../../../app/src/models/User.js'
import { User } from '../../../../app/src/models/User.mjs'
import AuthenticationManager from '../../../../app/src/Features/Authentication/AuthenticationManager.mjs'
import AuthenticationController from '../../../../app/src/Features/Authentication/AuthenticationController.mjs'
import SessionManager from '../../../../app/src/Features/Authentication/SessionManager.mjs'
@@ -52,7 +52,7 @@ describe('LaunchpadController', function () {
}),
}))
vi.doMock('../../../../../app/src/models/User.js', () => ({
vi.doMock('../../../../../app/src/models/User.mjs', () => ({
User: ctx.User,
}))