Mock THREE.js, THREEx.js, and dataStore for unit testing purposes.
npm install --save ebabel-mocks
const { mockTHREEx, mockTHREE, mockEG, mockCanvas } = require('ebabel-mocks');
const THREEx = mockTHREEx;
const THREE = mockTHREE;
const EG = mockEG;
const canvas = mockCanvas;
Fork this repository on Github, git clone
your repository, checkout the develop branch, and when you are done, submit a pull request from your repository develop branch to this repository develop branch.
- fork this repository on github.com
- git clone your forked repository.
- git checkout develop
npm install
npm test
An html coverage report is to be found in the coverage
folder.
npm run jsdoc
The generated documentation is to be found in the docs
folder.