Better local development for Serverless Functions

Shane Dowling
Feb 11, 2019 · 3 min read
Image for post
Image for post

Localstack

Serverless Offline

The Example

Tieing it all together

npm install aws-sdk-mock mongodb-memory-server sinon jest --save-dev
mkdir tests
module.exports = {
globalSetup: './tests/setup.js',
globalTeardown: './tests/teardown.js',
testEnvironment: './tests/mongo-environment.js',
roots: ['./tests/'],
};
"scripts":{   
"test": "jest"
},

HackerNoon.com

#BlackLivesMatter

Sign up for Get Better Tech Emails via HackerNoon.com

By HackerNoon.com

how hackers start their afternoons. the real shit is on hackernoon.com. Take a look

By signing up, you will create a Medium account if you don’t already have one. Review our Privacy Policy for more information about our privacy practices.

Check your inbox
Medium sent you an email at to complete your subscription.

Shane Dowling

Written by

Senior Dev at gousto.co.uk. Runner and terrible guitar player.

HackerNoon.com

Elijah McClain, George Floyd, Eric Garner, Breonna Taylor, Ahmaud Arbery, Michael Brown, Oscar Grant, Atatiana Jefferson, Tamir Rice, Bettie Jones, Botham Jean

Shane Dowling

Written by

Senior Dev at gousto.co.uk. Runner and terrible guitar player.

HackerNoon.com

Elijah McClain, George Floyd, Eric Garner, Breonna Taylor, Ahmaud Arbery, Michael Brown, Oscar Grant, Atatiana Jefferson, Tamir Rice, Bettie Jones, Botham Jean

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch

Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore

Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store