Code Monkey home page Code Monkey logo

jest-preset-typescript-react-native's People

Contributors

ahanriat avatar jeremyjh avatar pmairoldi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

jest-preset-typescript-react-native's Issues

TS config + source maps

Hi, we want to generate test coverage information, but this preset doesn't include sourceMap in the generated TS Config: https://github.com/petester42/jest-preset-typescript-react-native/blob/5494154d7aae701a1efed1a4903c1f42fb2a1bf2/preprocessor.js#L2-L8

and there's no way to add it in. This results in the coverage data being incorrect.

Would it be possible to read in options from package.json similar to how ts-jest works, or at least add sourceMap to the default config?

Thanks for the useful project too, by the way!

jest-haste-map: duplicate manual mock found

Hi !

I'm running into this issue when running my test:

jest-haste-map: duplicate manual mock found:
  Module name: log
  Duplicate Mock path: /Users/myapp/node_modules/react-native/local-cli/util/__mocks__/log.js
This warning is caused by two manual mock files with the same file name.
Jest will use the mock file found in:
/Users/myapp/node_modules/react-native/local-cli/util/__mocks__/log.js
 Please delete one of the following two files:
 /Users/myapp/node_modules/jest-preset-typescript-react-native/node_modules/react-native/local-cli/util/__mocks__/log.js
/Users/myapp/node_modules/react-native/local-cli/util/__mocks__/log.js

it looks like there is conflicts between react-native mocks and jest-preset-typescript-react-native mocks. I assume this is just a matter of declaring react-native dependency as a peer or something like that ;)

Thanks for this library!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.