From a89180ea0641cd0d668e6e7bcdbaebb8bb4519ba Mon Sep 17 00:00:00 2001 From: Alessio Gravili Date: Tue, 12 Mar 2024 12:54:04 -0400 Subject: [PATCH] chore: make sure deprecation warnings do not happen in jest --- test/startMemoryDB.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/startMemoryDB.ts b/test/startMemoryDB.ts index 26ced03a7d..ac76ad7158 100644 --- a/test/startMemoryDB.ts +++ b/test/startMemoryDB.ts @@ -10,6 +10,8 @@ export const startMemoryDB = async ( ): Promise => { const config = await configPromise + process.env.NODE_OPTIONS = '--no-deprecation' + console.log('---- CONNECTING TO MEMORY DB ----') switch (process.env.PAYLOAD_DATABASE) {