From 6b3a3c2274a708294d405df6e95ae4cc15b4ec09 Mon Sep 17 00:00:00 2001 From: Tommy Chen Date: Thu, 15 Feb 2024 12:50:04 +0800 Subject: [PATCH] test(cli): Disable deprecation warnings --- packages/cli/integration/utils/run.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/cli/integration/utils/run.ts b/packages/cli/integration/utils/run.ts index a18ad8d4d..3b17acf3b 100644 --- a/packages/cli/integration/utils/run.ts +++ b/packages/cli/integration/utils/run.ts @@ -15,6 +15,9 @@ export async function runNodeCLI( LC_ALL: "en_US", // Always enable console colors to make sure the output is consistent FORCE_COLOR: "1", + // Disable DeprecationWarning, because ajv-formats-draft2019 still uses + // the deprecated `punycode` module. + NODE_OPTIONS: "--no-deprecation", ...options.env } });