pmairoldi / jest-preset-typescript-react-native Goto Github PK
View Code? Open in Web Editor NEWSimplify the configuration of jest with a react-native and typescript
License: MIT License
Simplify the configuration of jest with a react-native and typescript
License: MIT License
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!
New Jest version has a new version of jest-environment-node.
Pls fix it)
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!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.