UnlyEd/boilerplates-generator

View on GitHub
templates/node-v10.x-aws-serverless-with-serverless-bundle/jest-preload-env.js

Summary

Maintainability
A
0 mins
Test Coverage
require('dotenv').config({ path: '.serverless/.env' });

if (process.env.NODE_ENV !== 'test') {
  throw Error('Tests must be executed in a "test" environment (by convention)');
}