Skip to content

🎥 Make videos programmatically with React

Keep font cache integration test compatible with Node 16

Alec Wattsaabaec1f8344
diff --git a/packages/it-tests/src/monorepo/esm.test.ts b/packages/it-tests/src/monorepo/esm.test.ts
index df49f46bef..bc0a723bc8 100644
--- a/packages/it-tests/src/monorepo/esm.test.ts
+++ b/packages/it-tests/src/monorepo/esm.test.ts
@@ -67,7 +67,10 @@ test('Google font ESM entries share loaded font faces with from-info', () => {
constructor() { constructed++; }
load() { return Promise.resolve(this); }
};
- globalThis.fetch = async () => new Response(new Uint8Array([0]));
+ globalThis.fetch = async () => ({
+ ok: true,
+ arrayBuffer: async () => new ArrayBuffer(1),
+ });
const options = {document, weights: ['400'], subsets: ['latin']};
const info = getInfo();