mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 14:13:43 +01:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user