Skip to content

Commit

Permalink
fix web tests
Browse files Browse the repository at this point in the history
  • Loading branch information
clesausse-pass committed Jul 11, 2024
1 parent 2eb7f91 commit ad71db9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/tests/setupTests.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import '@testing-library/jest-native/extend-expect'

import { TextEncoder } from 'util'

import * as consoleFailTestModule from 'console-fail-test'
import { toHaveNoViolations } from 'jest-axe'
import { configure } from 'reassure'
Expand All @@ -10,6 +12,7 @@ import { queryCache } from './reactQueryProviderHOC'
configure({ testingLibrary: 'react-native' })

global.expect.extend(toHaveNoViolations)
global.TextEncoder = TextEncoder

consoleFailTestModule.cft({
testFramework: 'jest',
Expand Down

0 comments on commit ad71db9

Please sign in to comment.