refactor: use __TEST__ flag
This commit is contained in:
@@ -53,7 +53,7 @@ export function warn(msg: string, ...args: any[]) {
|
||||
if (
|
||||
trace.length &&
|
||||
// avoid spamming console during tests
|
||||
(typeof process === 'undefined' || process.env.NODE_ENV !== 'test')
|
||||
!__TEST__
|
||||
) {
|
||||
warnArgs.push(`\n`, ...formatTrace(trace))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user