Merge pull request #29967 from overleaf/ar/web-remove-mocha-unit-tests

[web] remove mocha unit tests

GitOrigin-RevId: eda753af3470dbd1f385cb0bc3f06d78ade8a764
This commit is contained in:
Andrew Rumble
2025-12-03 09:05:37 +00:00
committed by Copybot
parent a3ec5b2797
commit f1e788d9b3
49 changed files with 293 additions and 563 deletions
@@ -7,8 +7,8 @@
*/
import { expect, vi } from 'vitest'
import sinon from 'sinon'
import MockRequest from '../helpers/MockRequest.js'
import MockResponse from '../helpers/MockResponse.js'
import MockRequest from '../helpers/MockRequest.mjs'
import MockResponse from '../helpers/MockResponse.mjs'
import ArchiveErrors from '../../../../app/src/Features/Uploads/ArchiveErrors.mjs'
const modulePath =
@@ -17,8 +17,8 @@ const modulePath =
describe('ProjectUploadController', function () {
beforeEach(async function (ctx) {
let Timer
ctx.req = new MockRequest()
ctx.res = new MockResponse()
ctx.req = new MockRequest(vi)
ctx.res = new MockResponse(vi)
ctx.user_id = 'user-id-123'
ctx.metrics = {
Timer: (Timer = (function () {