Miss any of our Open RFC calls?Watch the recordings here! »

ebabel-mocks

3.1.0 • Public • Published

ebabel-mocks

Build Status

Mock THREE.js, THREEx.js, and dataStore for unit testing purposes.

Module install and usage in your game

Install

npm install --save ebabel-mocks

Usage

const { mockTHREEx, mockTHREE, mockEG, mockCanvas } = require('ebabel-mocks');

const THREEx = mockTHREEx;
const THREE = mockTHREE;
const EG = mockEG;
const canvas = mockCanvas;

Development of this module

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

First step when developing

npm install

Run linting and unit tests

npm test

An html coverage report is to be found in the coverage folder.

Generate documentation

npm run jsdoc

The generated documentation is to be found in the docs folder.

Install

npm i ebabel-mocks

DownloadsWeekly Downloads

23

Version

3.1.0

License

GPL-3.0

Unpacked Size

58 kB

Total Files

29

Last publish

Collaborators

  • avatar