Comments (4)
Inspired again by https://github.com/ertrzyiks/react-native-component-test , I figured out to use this workaround currently:
transpile es6 syntax using custom scriptPreprocessor with babel-core 6,
and apply additional
"unmockedModulePathPatterns": [
"react",
"react-addons-test-utils",
to fix Error: Failed to get mock metadata for some of the component tests.
It's currently getting warning though:
Warning: React.createElement: type should not be null, undefined, boolean, or number. It should be a string (for DOM elements) or a ReactClass (for composite components).
I created a PR #44 with this update on a new branch so that it's easier to be managed as you wish.
from snowflake.
Fixed SHA: 3fb493b - Thanks @JaxGit !
from snowflake.
Glad to help. btw, to fix the warning, within mocks/react-native.js, an extra mock could be added: ReactNative.TouchableHighlight = View
from snowflake.
Fixed SHA: e6d4f6de74a6a62785beea15e00034b2ea6183dce - Thanks again @JaxGit !
from snowflake.
Related Issues (20)
- Apple Mach-O Linker (Id) Error Linker command failed with exit code 1 HOT 2
- How to change splash screen? HOT 3
- How to do a staging/production release? HOT 1
- Is Snowflake still active? HOT 7
- Missing dependency whatwg-fetch HOT 1
- Renaming app from snowflake to dist name? HOT 3
- SyntaxError: Strict mode does not allow function declarations in a lexically nested statement. HOT 4
- BitRise Android build is failing HOT 5
- Stuck on Transforming modules HOT 1
- always popup error window when render function called
- Backend Server HOT 2
- did Anyone Migrate from React-Native-Router-Flux to React Navigation? HOT 1
- Few queries regarding the backend HOT 1
- there is no config.js file or config folder file in the same folder(src/lib). HOT 2
- Snowflake Hapi Server (https://snowflakeserver-bartonhammond.rhcloud.com) is down HOT 2
- View does not resize in Landscape mode
- Keyboard blocking the form on Register page HOT 1
- Error: Missing app.json with expo start HOT 3
- Print: Entry, ":CFBundleIdentifier", Does Not Exist HOT 2
- Question: Any interest in putting together a premium version for sale on SugarKubes?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from snowflake.