Skip to content

Commit 95f21ef

Browse files
ElenaBitireyjose
authored andcommitted
fix: fix config for testing
1 parent 135dde8 commit 95f21ef

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module.exports = {
22
preset: 'jest-expo',
33
setupFilesAfterEnv: [
4-
'@testing-library/jest-native/extend-expect',
4+
'@testing-library/react-native/extend-expect',
55
'<rootDir>/setup.ts',
66
],
77
testMatch: ['**/?(*.)+(spec|test).ts?(x)'],

setup.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import '@testing-library/react-native/extend-expect';
12
// react-hook form setup for testing
23
import '@testing-library/jest-dom';
34
// @ts-ignore

0 commit comments

Comments
 (0)