Merge pull request #34344 from overleaf/copilot/convert-fetch-utils-to-es-modules

Convert @overleaf/fetch-utils to TypeScript ESM with Vitest, enable noImplicitAny, fix downstream regressions, and align buildscript generation

GitOrigin-RevId: e060152f056cbae31da0650fb22471525835bd5e
This commit is contained in:
Andrew Rumble
2026-09-17 11:24:05 +00:00
committed by Copybot
parent 152004a600
commit 05423f1a1d
11 changed files with 193 additions and 183 deletions
@@ -16,6 +16,12 @@ const { expect } = require('chai')
describe('index', function () {
beforeEach(function () {
let Cluster, IoRedis, ioredisConstructor
const loggerMock = {
error() {},
warn() {},
info() {},
debug() {},
}
this.settings = {}
this.ioredisConstructor = ioredisConstructor = sinon.stub()
@@ -51,6 +57,7 @@ describe('index', function () {
this.redis = SandboxedModule.require(modulePath, {
requires: {
ioredis: this.ioredis,
'@overleaf/logger': loggerMock,
},
globals: {
process,
@@ -64,6 +71,7 @@ describe('index', function () {
'@overleaf/metrics': {
inc() {},
},
'@overleaf/logger': loggerMock,
},
globals: {
process,