jina / src /mocks /workers.js
Leon4gr45's picture
Upload folder using huggingface_hub
cf6b8d4 verified
raw
history blame contribute delete
305 Bytes
exports.WorkerEntrypoint = class {};
exports.DurableObject = class {};
exports.WorkflowEntrypoint = class {};
// Mock global WebSocket if it doesn't exist (Node 20 has it, but maybe partyserver checks specifically)
if (typeof globalThis.WebSocket === 'undefined') {
globalThis.WebSocket = class {};
}