Skip to content

Commit e812f06

Browse files
tvanhensTyler van Hensbergen
and
Tyler van Hensbergen
authored
feat: add jest config (#7)
Co-authored-by: Tyler van Hensbergen <[email protected]>
1 parent 4acfb8a commit e812f06

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,13 +100,15 @@ async function run() {
100100
"@aws-cdk/aws-appsync-alpha",
101101
"@functionless/ast-reflection",
102102
"@functionless/language-service",
103+
"@types/jest",
103104
"@types/node",
104105
"aws-cdk",
105106
"aws-cdk-lib",
106107
"aws-sdk",
107108
"constructs",
108109
"esbuild",
109110
"functionless",
111+
"jest",
110112
"typesafe-dynamodb",
111113
"typescript",
112114
];

templates/default/package.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,16 @@
55
"scripts": {
66
"deploy": "cdk deploy",
77
"synth": "cdk synth",
8+
"test": "jest",
89
"validate": "functionless"
910
},
10-
"devDependencies": {}
11+
"devDependencies": {},
12+
"jest": {
13+
"transform": {
14+
"^.+\\.(t|j)sx?$": [
15+
"functionless/jest",
16+
{}
17+
]
18+
}
19+
}
1120
}

0 commit comments

Comments
 (0)