mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-03 06:09:02 +02:00
[web] Convert models and self-referential test files to ESM (#29521)
from overleaf/ar-models-es-conversion GitOrigin-RevId: a92ab8342c0f3e23155eacc0570458fc910c3d71
This commit is contained in:
@@ -3,9 +3,8 @@ import sinon from 'sinon'
|
||||
import tk from 'timekeeper'
|
||||
import Errors from '../../../../app/src/Features/Errors/Errors.js'
|
||||
import mongodb from 'mongodb-legacy'
|
||||
import indirectlyImportModels from '../helpers/indirectlyImportModels.js'
|
||||
import { Project } from '../../../../app/src/models/Project.mjs'
|
||||
|
||||
const { Project } = indirectlyImportModels(['Project'])
|
||||
const { ObjectId } = mongodb
|
||||
|
||||
vi.mock('../../../../app/src/Features/Errors/Errors.js', () =>
|
||||
|
||||
Reference in New Issue
Block a user