From 93665155657198ea011a714057ba703010b4c479 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:39:34 +0900 Subject: [PATCH] test(backend): polyfill position --- packages/backend/test/jest.setup.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/backend/test/jest.setup.ts b/packages/backend/test/jest.setup.ts index 29a67da711..fdb2f685c9 100644 --- a/packages/backend/test/jest.setup.ts +++ b/packages/backend/test/jest.setup.ts @@ -5,14 +5,14 @@ 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 () => { + // 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'); + await Promise.all([ initTestDb(false), sendEnvResetRequest(),