hectorromo / azure-functions-ts-jest

Sample application that test Azure Function apps

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

azure-functions-ts-jest

Sample application that has integration-tests on Azure Function apps with jest

Setup

Install the app

npm install

Setup local settings

Copy local.settings-SAMPLE.json and name it local.settings.json.

Create database

Create a MongoDB database (your db for testing purposes). Add connection string to local.settings.json

Test the function app

npm test or npm run test:watch

Start the function app

npm start

About

Sample application that test Azure Function apps


Languages

Language:TypeScript 98.8%Language:JavaScript 1.2%