Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ts-jest & react-native 0.56 -- no way to successfully configure [has-repro] #611

Closed
fbartho opened this issue Jul 9, 2018 · 2 comments
Closed

Comments

@fbartho
Copy link

fbartho commented Jul 9, 2018

Issue

Either upgrading my current repository to latest everything or following clean setup instructions still lead to a series of different errors that prevent Jest tests from successfully testing code that uses both typescript & various react-native imports. (While using react-native 0.56).

Clean Instructions: https://facebook.github.io/react-native/blog/2018/05/07/using-typescript-with-react-native.html

Expected behavior

It should be possible to configure react-native 0.56, ts-jest, and babel-jest and have them all working at the same time.

Output from your debug log

$ echo "$TS_JEST_DEBUG"
true
$ yarn test
[snipped]
$ ls node_modules/ts-jest
AUTHORS
CHANGELOG.md
COLLABORATORS.md
LICENSE
README.md
appveyor.yml
dist
index.d.ts
index.js
node_modules
package.json
preprocessor.js
tsconfig.json
tslint.json
yarn.lock

Somehow there is no debug.txt** in the directory suggested by instructions?

  • I'm happy to configure a CI with this repo if somebody can link me to documentation on how to do this.
@fbartho fbartho changed the title ts-jest & react-native 0.56 ts-jest & react-native 0.56 -- no way to successfully configure [has-repro] Jul 9, 2018
@fbartho
Copy link
Author

fbartho commented Jul 9, 2018

Related Issue: facebook/react-native#20030

@huafu
Copy link
Collaborator

huafu commented Sep 19, 2018

@fbartho see https://kulshekhar.github.io/ts-jest/user/react-native/
Closing this for now, feel free to re-open if you think it should be

@huafu huafu closed this as completed Sep 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants