Skip to content

Commit 81ed082

Browse files
chore: Silence test noise (#1668)
1 parent 88aec0c commit 81ed082

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

tools/jest/globals.mjs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,10 @@ if (typeof window !== 'undefined') {
66
window.Response = jest.fn()
77
}
88

9+
/** silence unneeded console debug (warn(...)) noise during tests */
10+
if (typeof console !== 'undefined') {
11+
console.error = jest.fn()
12+
console.debug = jest.fn()
13+
}
14+
915
jest.retryTimes(3)

0 commit comments

Comments
 (0)