From dbbf1e50a2ce237269718c7df8b104061c79638d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8C=E8=B4=A7=E6=9C=BA=E5=99=A8=E4=BA=BA?= Date: Thu, 7 Jul 2022 23:41:20 +0800 Subject: [PATCH] chore: rm useless warning in alpha (#36419) * chore: rm useless warning in alpha * chore: no need for test --- components/_util/alphaWarning.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/_util/alphaWarning.tsx b/components/_util/alphaWarning.tsx index f1059909ce..a6c8e05076 100644 --- a/components/_util/alphaWarning.tsx +++ b/components/_util/alphaWarning.tsx @@ -3,7 +3,8 @@ import * as React from 'react'; import Notification from '../notification'; // Alpha version warning, should remove when published -if (process.env.NODE_ENV !== 'production' && canUseDom()) { +/* istanbul ignore next */ +if (process.env.NODE_ENV !== 'production' && process.env.NODE_ENV !== 'test' && canUseDom()) { const icon: React.ReactNode = (