Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/alexellis/openfaas-node12-mocha-unit-test

OpenFaaS Node.js with Mocha test
https://github.com/alexellis/openfaas-node12-mocha-unit-test

Last synced: 18 days ago
JSON representation

OpenFaaS Node.js with Mocha test

Awesome Lists containing this project

README

        

## openfaas-node12-mocha-unit-test

Example of how to unit-test an OpenFaaS function using the node12 template and [Mocha.js](https://mochajs.org)

```
git clone https://github.com/alexellis/openfaas-node12-mocha-unit-test
cd openfaas-node12-mocha-unit-test
npm install
```

Test with:

```
faas-cli build

# or

cd unit-test && npm test
```