Root-App / react-native-mock-render

a fork of react-native-mock that renders
MIT License
85 stars 50 forks source link

Cannot find module 'art/core/path.js'. #47

Open AndrewSouthpaw opened 6 years ago

AndrewSouthpaw commented 6 years ago

Following a basic setup, I get the following error running on Jest 22:

 FAIL  frontend/native/screens/__tests__/concentration_screen_spec.js
  ● Test suite failed to run

    Cannot find module 'art/core/class.js' from 'Path.js'

      at Resolver.resolveModule (node_modules/jest-resolve/build/index.js:169:17)
      at Object.<anonymous> (node_modules/react-native-mock-render/build/components/ART/Path.js:1:104)

Searching around in the codebase, I don't see any files that match art/core/class.js. I've had to comment out the ART component in react-native.js on line 13.

Anyone know what's going on there?

chinenyem commented 5 years ago

I am having the same issue, has anyone come up with an answer for this yet?

DracotMolver commented 3 years ago

This is because the ART dependency was removed from the react-native core. This project seems not to be maintain. If you look the code the mock is pointed to an non-existent class. It should be updated. A quick/awful part is just comment the line that calls the ART dependency or make a fork of this project and fix it by your own

GhayoorUlHaq commented 2 years ago

Is there any solution for this?

sonicdoe commented 2 years ago

@russellwpatterson Why did you close this issue?

russellwpatterson commented 2 years ago

Accidentally. I can reopen.

sonicdoe commented 2 years ago

Thank you! By the way, this issue should be fixed by https://github.com/Root-App/react-native-mock-render/pull/89.