diff --git a/src/index.ts b/src/index.ts index 31403f7..312d431 100644 --- a/src/index.ts +++ b/src/index.ts @@ -100,6 +100,7 @@ async function run() { "@aws-cdk/aws-appsync-alpha", "@functionless/ast-reflection", "@functionless/language-service", + "@types/jest", "@types/node", "aws-cdk", "aws-cdk-lib", @@ -107,6 +108,7 @@ async function run() { "constructs", "esbuild", "functionless", + "jest", "typesafe-dynamodb", "typescript", ]; diff --git a/templates/default/package.json b/templates/default/package.json index 3f39b45..1a74a97 100644 --- a/templates/default/package.json +++ b/templates/default/package.json @@ -5,7 +5,16 @@ "scripts": { "deploy": "cdk deploy", "synth": "cdk synth", + "test": "jest", "validate": "functionless" }, - "devDependencies": {} + "devDependencies": {}, + "jest": { + "transform": { + "^.+\\.(t|j)sx?$": [ + "functionless/jest", + {} + ] + } + } }