testing-library / native-testing-library

🐳 Simple and complete React Native testing utilities that encourage good testing practices.
https://native-testing-library.com
MIT License
516 stars 44 forks source link

v6.0.0 don't works with react-native 0.61.5 #145

Closed gtkatakura closed 4 years ago

gtkatakura commented 4 years ago

What you did:

Just try use react-native@0.61.5 with the native-testing-library@6.0.0

What happened:

$ jest
 FAIL  src/components/ui/Button/__tests__/Button.test.tsx
  ● Test suite failed to run

    Cannot find module 'react-native/Libraries/LogBox/LogBox' from 'node_modules/@testing-library/react-native/dist/preset/mock-modules.js'

    Require stack:
      node_modules/@testing-library/react-native/dist/preset/mock-modules.js
      node_modules/@testing-library/react-native/dist/preset/setup.js

      at Resolver.resolveModule (node_modules/jest-resolve/build/index.js:308:11)
      at Object.<anonymous> (node_modules/@testing-library/react-native/dist/preset/mock-modules.js:79:6)

Test Suites: 1 failed, 1 total
Tests:       0 total
Snapshots:   0 total
Time:        0.31 s, estimated 2 s
Ran all test suites.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Reproduction:

Problem description:

Suggested solution:

sibelius commented 4 years ago

It only works with 62

thymikee commented 4 years ago

Please use v7.0, it works with any version of React Native.

FYI, this repository is no longer responsible for this package. See the migration guide.