From 623eb410bb6dddb7292780ac6e1bd5a78a882478 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Acid=20Chicken=20=28=E7=A1=AB=E9=85=B8=E9=B6=8F=29?= Date: Sat, 1 Jun 2024 16:28:07 +0900 Subject: [PATCH] test(backend): polyfill erm --- packages/backend/test/jest.setup.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/backend/test/jest.setup.ts b/packages/backend/test/jest.setup.ts index 861bc6db66..29a67da711 100644 --- a/packages/backend/test/jest.setup.ts +++ b/packages/backend/test/jest.setup.ts @@ -5,6 +5,13 @@ import { initTestDb, sendEnvResetRequest } from './utils.js'; +// eslint-disable-next-line @typescript-eslint/ban-ts-comment +// @ts-expect-error +Symbol.dispose ??= Symbol('Symbol.dispose'); +// eslint-disable-next-line @typescript-eslint/ban-ts-comment +// @ts-expect-error +Symbol.asyncDispose ??= Symbol('Symbol.asyncDispose'); + beforeAll(async () => { await Promise.all([ initTestDb(false),