Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ebabel-games/ebabel-mocks
Mock THREE.js, THREEx.js, and dataStore for unit testing purposes.
https://github.com/ebabel-games/ebabel-mocks
game-development mocks test-automation threejs
Last synced: about 2 months ago
JSON representation
Mock THREE.js, THREEx.js, and dataStore for unit testing purposes.
- Host: GitHub
- URL: https://github.com/ebabel-games/ebabel-mocks
- Owner: ebabel-games
- License: gpl-3.0
- Created: 2018-10-01T13:57:25.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-10-20T09:03:45.000Z (about 6 years ago)
- Last Synced: 2024-10-12T15:42:32.091Z (3 months ago)
- Topics: game-development, mocks, test-automation, threejs
- Language: JavaScript
- Size: 92.8 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# ebabel-mocks
[![Build Status](https://travis-ci.org/ebabel-games/ebabel-mocks.svg?branch=master)](https://travis-ci.org/ebabel-games/ebabel-mocks)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.