UnlyEd/airtable-backups-boilerplate

View on GitHub
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)');
}