Skip to content

Commit

Permalink
chore: filter out hostcontext warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
CodyJasonBennett committed Apr 15, 2024
1 parent 03d7828 commit 6f5cdba
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/shared/setupTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@ import { WebGL2RenderingContext } from '@react-three/test-renderer/src/WebGL2Ren
import { extend } from '@react-three/fiber'
import 'regenerator-runtime/runtime'

const error = console.error
console.error = function () {
const message = Array.from(arguments).join('')
if (message.includes('Expected host context to exist')) return

return error.apply(this, arguments as any)
}

declare global {
var IS_REACT_ACT_ENVIRONMENT: boolean
}
Expand Down

0 comments on commit 6f5cdba

Please sign in to comment.