Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/alexellis/openfaas-node12-mocha-unit-test
- Owner: alexellis
- Created: 2020-03-16T10:39:21.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-12-30T19:52:52.000Z (almost 2 years ago)
- Last Synced: 2024-10-12T18:46:15.669Z (about 1 month ago)
- Language: JavaScript
- Size: 70.3 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
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
```