Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

try adding support for jest #1680

Closed
wants to merge 1 commit into from
Closed

try adding support for jest #1680

wants to merge 1 commit into from

Conversation

norbertschuler
Copy link
Collaborator

@norbertschuler norbertschuler commented Nov 29, 2019

Fixes #1679 and #1302

Changes in this pull request:

  • trying to added support for jest with running npm run test or jest (after having installed jest globally with npm install jest --global)

Problem:

 FAIL  __tests__/App-test.js
  ● Test suite failed to run

    Cannot find module 'warnOnce' from 'react-native-implementation.js'
      
      at Resolver.resolveModule (node_modules/jest/node_modules/jest-resolve/build/index.js:169:17)
      at Object.<anonymous> (node_modules/react-native/Libraries/react-native/react-native-implementation.js:14:18)

I tried some stuff from jestjs/jest#6933 but did not succeed.

@norbertschuler
Copy link
Collaborator Author

I create an alternate configuration not using babel7-jest, but it also does not work: https://github.com/Plant-for-the-Planet-org/treecounter-app/tree/feature/jest-alternative

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Not able to configure environment for testing.
1 participant