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

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

GitOrigin-RevId: 5455cccbb513bd9ca36ce526ff1553065f83d233
This commit is contained in:
Andrew Rumble
2025-11-12 16:45:42 +00:00
committed by Copybot
parent e7cc70baf7
commit ae6dec9dcb
202 changed files with 846 additions and 804 deletions

View File

@@ -3,8 +3,9 @@ import sinon from 'sinon'
import tk from 'timekeeper'
import Errors from '../../../../app/src/Features/Errors/Errors.js'
import mongodb from 'mongodb-legacy'
import { Project } from '../../../../app/src/models/Project.mjs'
import indirectlyImportModels from '../helpers/indirectlyImportModels.js'
const { Project } = indirectlyImportModels(['Project'])
const { ObjectId } = mongodb
vi.mock('../../../../app/src/Features/Errors/Errors.js', () =>