This repo is the home of all Open and Accountable Elections lambdas. The current list of lambdas includes:
- orestarScraper (cron job)
This is a template for the Serverless Framework with typescript, eslint and jest.
This repository has common tools and configuration for working The Serverless Framework and Typescript with AWS.
Largely based off this repo.
- serverless-offline
- serverless-webpack
- serverless-iam-roles-per-function
- serverless-prune-plugin
- serverless-dotenv-plugin
- serverless-offline-scheduler
- @dazn/lambda-powertools-cloudwatchevents-client
- @dazn/lambda-powertools-correlation-ids
- @dazn/lambda-powertools-logger
- @dazn/lambda-powertools-pattern-basic
- @dazn/lambda-powertools-lambda-client
- eslint
- eslint-config-airbnb-base
- typescript-eslint
- eslint-plugin-import
- @typescript-eslint/eslint-plugin
- @typescript/eslint-parser
- eslint-import-resolver-alias
- eslint-plugin-module-resolver
- mocha
- @babel/core
- @babel/preset-env
- @babel/preset-typescript
A default test is included to verify that jest is configured correctly
describe('who tests the tests?', () => {
it('can run a test', () => {
expect.hasAssertions();
expect(1).toBe(1);
});
});
Aliases must be defined in webpack, tsconfig, and eslint