firemock
firemock
Last updated 2 months ago by ksnyde .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install firemock 
SYNC missed versions from official npm registry.

Build Status MIT license

firemock

Firebase, Typescript, and mocking ... what more could you ask for?

Overview

This Typescript library is meant to serve as a type-aware solution for node developers using a Firebase backend. The functional overview consists of:

  1. Generate mock data -- with Firebase conventions -- for testing
  2. Provide an in-memory database/data structure to store this mock data for testing durations
  3. Provide a Firebase API surface for querying the in-memory database

It's worth pointing out that this library does not do the typical mock/spy types of tracking that you get with frameworks like sinon or test-double in JS and/or ts-mokito or typemoq in TS. If that's what you want then use one of these already existing solutions.

Installation

To start using, simply type one of the following into your terminal window at the root of the project:

# npm
npm install --save-dev firemock
# yarn
yarn add --dev firemock

Documentation

The documentation is hosted on Gitbook, point your browser to: firemock documentation

Contribution: PRs and Issues

I have developed this for my own needs but as with all my other open-source work I'd be happy to recieve PR's and issues. Not surprisingly, PR's are my preference but sometimes people don't feel they have the right skills or time to fix something they feel is broken so raising issues is a nice way to communicate something you've noticed. I can't promise issues will always get immediate attention but I will get back as soon as I can.

License

Copyright (c) 2017 LifeGadget Ltd

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Current Tags

  • 0.59.2                                ...           latest (2 months ago)

253 Versions

  • 0.59.2                                ...           2 months ago
  • 0.59.0                                ...           2 months ago
  • 0.58.4                                ...           2 months ago
  • 0.58.3                                ...           2 months ago
  • 0.58.2                                ...           2 months ago
  • 0.58.1                                ...           2 months ago
  • 0.58.0                                ...           2 months ago
  • 0.57.1                                ...           2 months ago
  • 0.57.0                                ...           2 months ago
  • 0.56.5                                ...           2 months ago
  • 0.56.4                                ...           2 months ago
  • 0.56.3                                ...           2 months ago
  • 0.56.2                                ...           2 months ago
  • 0.56.1                                ...           2 months ago
  • 0.56.0                                ...           2 months ago
  • 0.55.13                                ...           3 months ago
  • 0.55.11                                ...           3 months ago
  • 0.55.10                                ...           3 months ago
  • 0.55.8                                ...           3 months ago
  • 0.55.4                                ...           3 months ago
  • 0.55.3                                ...           3 months ago
  • 0.55.2                                ...           4 months ago
  • 0.55.0                                ...           4 months ago
  • 0.54.3                                ...           4 months ago
  • 0.54.2                                ...           4 months ago
  • 0.54.1                                ...           4 months ago
  • 0.54.0                                ...           4 months ago
  • 0.53.31                                ...           4 months ago
  • 0.53.30                                ...           4 months ago
  • 0.53.29                                ...           4 months ago
  • 0.53.28                                ...           4 months ago
  • 0.53.26                                ...           4 months ago
  • 0.53.25                                ...           4 months ago
  • 0.53.24                                ...           4 months ago
  • 0.53.23                                ...           4 months ago
  • 0.53.21                                ...           4 months ago
  • 0.53.20                                ...           4 months ago
  • 0.53.19                                ...           4 months ago
  • 0.53.18                                ...           4 months ago
  • 0.53.17                                ...           4 months ago
  • 0.53.16                                ...           4 months ago
  • 0.53.15                                ...           4 months ago
  • 0.53.9                                ...           4 months ago
  • 0.53.8                                ...           4 months ago
  • 0.53.6                                ...           4 months ago
  • 0.53.1                                ...           4 months ago
  • 0.53.0                                ...           4 months ago
  • 0.52.7                                ...           4 months ago
  • 0.52.6                                ...           4 months ago
  • 0.52.4                                ...           4 months ago
  • 0.52.3                                ...           4 months ago
  • 0.52.1                                ...           4 months ago
  • 0.52.0                                ...           4 months ago
  • 0.51.0                                ...           4 months ago
  • 0.50.8                                ...           4 months ago
  • 0.50.7                                ...           5 months ago
  • 0.50.6                                ...           5 months ago
  • 0.50.5                                ...           5 months ago
  • 0.50.3                                ...           5 months ago
  • 0.50.1                                ...           5 months ago
  • 0.50.0                                ...           5 months ago
  • 0.49.6                                ...           5 months ago
  • 0.49.5                                ...           5 months ago
  • 0.49.4                                ...           5 months ago
  • 0.49.3                                ...           5 months ago
  • 0.49.2                                ...           5 months ago
  • 0.49.0                                ...           5 months ago
  • 0.48.20                                ...           5 months ago
  • 0.48.18                                ...           5 months ago
  • 0.48.17                                ...           5 months ago
  • 0.48.15                                ...           5 months ago
  • 0.48.14                                ...           5 months ago
  • 0.48.13                                ...           5 months ago
  • 0.48.12                                ...           5 months ago
  • 0.48.11                                ...           5 months ago
  • 0.48.10                                ...           5 months ago
  • 0.48.8                                ...           5 months ago
  • 0.48.7                                ...           5 months ago
  • 0.48.5                                ...           5 months ago
  • 0.48.4                                ...           5 months ago
  • 0.48.3                                ...           5 months ago
  • 0.48.2                                ...           5 months ago
  • 0.48.1                                ...           5 months ago
  • 0.48.0                                ...           5 months ago
  • 0.47.1                                ...           5 months ago
  • 0.47.0                                ...           5 months ago
  • 0.46.0                                ...           5 months ago
  • 0.45.1                                ...           5 months ago
  • 0.45.0                                ...           5 months ago
  • 0.44.13                                ...           5 months ago
  • 0.44.10                                ...           5 months ago
  • 0.44.9                                ...           5 months ago
  • 0.44.6                                ...           5 months ago
  • 0.44.5                                ...           5 months ago
  • 0.44.3                                ...           5 months ago
  • 0.44.2                                ...           5 months ago
  • 0.44.1                                ...           5 months ago
  • 0.44.0                                ...           5 months ago
  • 0.43.0                                ...           6 months ago
  • 0.42.0                                ...           6 months ago
  • 0.40.0                                ...           6 months ago
  • 0.38.10                                ...           6 months ago
  • 0.38.9                                ...           6 months ago
  • 0.38.7                                ...           6 months ago
  • 0.38.6                                ...           6 months ago
  • 0.38.5                                ...           6 months ago
  • 0.38.4                                ...           6 months ago
  • 0.38.3                                ...           6 months ago
  • 0.38.2                                ...           6 months ago
  • 0.38.1                                ...           6 months ago
  • 0.38.0                                ...           6 months ago
  • 0.37.6                                ...           7 months ago
  • 0.37.5                                ...           7 months ago
  • 0.37.4                                ...           7 months ago
  • 0.37.3                                ...           7 months ago
  • 0.37.2                                ...           7 months ago
  • 0.37.1                                ...           8 months ago
  • 0.37.0                                ...           8 months ago
  • 0.36.0                                ...           10 months ago
  • 0.35.11                                ...           10 months ago
  • 0.35.10                                ...           10 months ago
  • 0.35.9                                ...           10 months ago
  • 0.35.8                                ...           10 months ago
  • 0.35.7                                ...           a year ago
  • 0.35.6                                ...           a year ago
  • 0.35.5                                ...           a year ago
  • 0.35.4                                ...           a year ago
  • 0.35.3                                ...           a year ago
  • 0.35.2                                ...           a year ago
  • 0.35.1                                ...           a year ago
  • 0.35.0                                ...           a year ago
  • 0.34.1                                ...           a year ago
  • 0.34.0                                ...           a year ago
  • 0.33.7                                ...           a year ago
  • 0.33.6                                ...           a year ago
  • 0.33.5                                ...           a year ago
  • 0.33.4                                ...           a year ago
  • 0.33.3                                ...           a year ago
  • 0.33.2                                ...           a year ago
  • 0.33.1                                ...           a year ago
  • 0.33.0                                ...           a year ago
  • 0.32.11                                ...           a year ago
  • 0.32.10                                ...           a year ago
  • 0.32.9                                ...           a year ago
  • 0.32.8                                ...           a year ago
  • 0.32.6                                ...           a year ago
  • 0.32.5                                ...           a year ago
  • 0.32.4                                ...           a year ago
  • 0.32.3                                ...           a year ago
  • 0.32.2                                ...           a year ago
  • 0.32.1                                ...           a year ago
  • 0.32.0                                ...           a year ago
  • 0.31.0                                ...           a year ago
  • 0.30.2                                ...           a year ago
  • 0.30.1                                ...           a year ago
  • 0.30.0                                ...           a year ago
  • 0.27.8                                ...           a year ago
  • 0.27.7                                ...           a year ago
  • 0.27.6                                ...           a year ago
  • 0.27.5                                ...           a year ago
  • 0.27.4                                ...           a year ago
  • 0.27.3                                ...           a year ago
  • 0.27.2                                ...           a year ago
  • 0.27.1                                ...           a year ago
  • 0.27.0                                ...           a year ago
  • 0.25.5                                ...           a year ago
  • 0.25.4                                ...           a year ago
  • 0.25.3                                ...           a year ago
  • 0.25.1                                ...           a year ago
  • 0.25.0                                ...           a year ago
  • 0.24.104                                ...           a year ago
  • 0.24.103                                ...           a year ago
  • 0.24.102                                ...           a year ago
  • 0.24.101                                ...           a year ago
  • 0.24.100                                ...           a year ago
  • 0.24.99                                ...           a year ago
  • 0.20.7                                ...           2 years ago
  • 0.20.6                                ...           2 years ago
  • 0.20.5                                ...           2 years ago
  • 0.20.4                                ...           2 years ago
  • 0.20.3                                ...           2 years ago
  • 0.20.2                                ...           2 years ago
  • 0.20.1                                ...           2 years ago
  • 0.20.0                                ...           2 years ago
  • 0.19.1                                ...           2 years ago
  • 0.19.0                                ...           2 years ago
  • 0.18.3                                ...           2 years ago
  • 0.18.2                                ...           2 years ago
  • 0.18.1                                ...           2 years ago
  • 0.18.0                                ...           2 years ago
  • 0.17.12                                ...           2 years ago
  • 0.17.11                                ...           2 years ago
  • 0.17.10                                ...           2 years ago
  • 0.17.9                                ...           2 years ago
  • 0.17.8                                ...           2 years ago
  • 0.17.7                                ...           2 years ago
  • 0.17.6                                ...           2 years ago
  • 0.17.5                                ...           2 years ago
  • 0.17.4                                ...           2 years ago
  • 0.17.3                                ...           2 years ago
  • 0.17.2                                ...           2 years ago
  • 0.17.0                                ...           2 years ago
  • 0.16.3                                ...           2 years ago
  • 0.16.2                                ...           2 years ago
  • 0.16.0                                ...           2 years ago
  • 0.15.15                                ...           3 years ago
  • 0.15.14                                ...           3 years ago
  • 0.15.13                                ...           3 years ago
  • 0.15.12                                ...           3 years ago
  • 0.15.11                                ...           3 years ago
  • 0.15.10                                ...           3 years ago
  • 0.15.9                                ...           3 years ago
  • 0.15.8                                ...           3 years ago
  • 0.15.7                                ...           3 years ago
  • 0.15.6                                ...           3 years ago
  • 0.15.5                                ...           3 years ago
  • 0.15.4                                ...           3 years ago
  • 0.15.1                                ...           3 years ago
  • 0.15.0                                ...           3 years ago
  • 0.14.9                                ...           3 years ago
  • 0.14.8                                ...           3 years ago
  • 0.14.7                                ...           3 years ago
  • 0.14.6                                ...           3 years ago
  • 0.14.5                                ...           3 years ago
  • 0.14.4                                ...           3 years ago
  • 0.14.3                                ...           3 years ago
  • 0.14.2                                ...           3 years ago
  • 0.14.1                                ...           3 years ago
  • 0.14.0                                ...           3 years ago
  • 0.13.1                                ...           3 years ago
  • 0.13.0                                ...           3 years ago
  • 0.12.0                                ...           3 years ago
  • 0.9.2                                ...           3 years ago
  • 0.11.4                                ...           3 years ago
  • 0.11.3                                ...           3 years ago
  • 0.11.2                                ...           3 years ago
  • 0.11.1                                ...           3 years ago
  • 0.11.0                                ...           3 years ago
  • 0.10.12                                ...           3 years ago
  • 0.10.11                                ...           3 years ago
  • 0.10.10                                ...           3 years ago
  • 0.10.9                                ...           3 years ago
  • 0.10.8                                ...           3 years ago
  • 0.10.7                                ...           3 years ago
  • 0.10.6                                ...           3 years ago
  • 0.10.5                                ...           3 years ago
  • 0.10.4                                ...           3 years ago
  • 0.10.3                                ...           3 years ago
  • 0.10.2                                ...           3 years ago
  • 0.10.1                                ...           3 years ago
  • 0.10.0                                ...           3 years ago
  • 0.9.1                                ...           3 years ago
  • 0.9.0                                ...           3 years ago
Maintainers (2)
Downloads
Today 0
This Week 0
This Month 2
Last Day 1
Last Week 1
Last Month 1
Dependencies (11)
Dev Dependencies (37)

Copyright 2014 - 2016 © taobao.org |