Skip to content

Commit

Permalink
Enable @testing-library/react-native preset
Browse files Browse the repository at this point in the history
  • Loading branch information
roryabraham committed Feb 8, 2023
1 parent 2e7400f commit 5db5c58
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const testFileExtension = '[jt]s?(x)';
module.exports = {
preset: 'react-native',
// TODO: change this back to preset: 'react-native' once we upgrade to React Native >= 0.71.2
preset: '@testing-library/react-native',
testMatch: [
`<rootDir>/tests/ui/**/*.${testFileExtension}`,
`<rootDir>/tests/unit/**/*.${testFileExtension}`,
Expand Down

0 comments on commit 5db5c58

Please sign in to comment.