mathworldvr | Math world in WebVR , powered by A-frame | Augmented Reality library
kandi X-RAY | mathworldvr Summary
kandi X-RAY | mathworldvr Summary
WebVR math platform made with A-Frame, Three.js, React, Redux.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of mathworldvr
mathworldvr Key Features
mathworldvr Examples and Code Snippets
Community Discussions
Trending Discussions on mathworldvr
QUESTION
In MathworldVR project (https://github.com/michaltakac/mathworldvr) I'm using aframe-super-hands-component
which fires 'hover-start'
and 'hover-end'
events when user hits/leaves the entity with VR hand controllers. Everything is working as expected.
But how can I call these events from within tests? I cannot simulate those with TestUtils
from react-dom/test-utils
when A-Frame entity is rendered with Enzyme
's shallow
, react-test-renderer
's renderer
or Jest, since it only can simulate traditional React events.
CalcButton component code:
...ANSWER
Answered 2017-Apr-17 at 18:15For actual browser testing, I would use Karma Test Runner. Check out aframe-react's test harness: https://github.com/aframevr/aframe-react/tree/master/tests/browser. There are React tests which test React rendering and React-level stuff, and browser tests which test full integration including events.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install mathworldvr
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page