Skip to content

Commit

Permalink
chore(lambda): migrate all tests to jest (aws#10948)
Browse files Browse the repository at this point in the history
Note: No functional change to the tests or the set of tests.


----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
Niranjan Jayakar authored Oct 19, 2020
1 parent ddff37c commit fb54aad
Show file tree
Hide file tree
Showing 17 changed files with 2,299 additions and 3,002 deletions.
1 change: 1 addition & 0 deletions packages/@aws-cdk/aws-lambda/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@ nyc.config.js
.LAST_PACKAGE
*.snk
!.eslintrc.js
!jest.config.js

junit.xml
1 change: 1 addition & 0 deletions packages/@aws-cdk/aws-lambda/.npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ dist

tsconfig.json
.eslintrc.js
jest.config.js

# exclude cdk artifacts
**/cdk.out
Expand Down
2 changes: 2 additions & 0 deletions packages/@aws-cdk/aws-lambda/jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
const baseConfig = require('cdk-build-tools/config/jest.config');
module.exports = baseConfig;
4 changes: 2 additions & 2 deletions packages/@aws-cdk/aws-lambda/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
},
"cdk-build": {
"cloudformation": "AWS::Lambda",
"jest": true,
"env": {
"AWSLINT_BASE_CONSTRUCT": "true"
}
Expand All @@ -78,12 +79,11 @@
"@aws-cdk/assert": "0.0.0",
"@types/aws-lambda": "^8.10.63",
"@types/lodash": "^4.14.161",
"@types/nodeunit": "^0.0.31",
"cdk-build-tools": "0.0.0",
"cdk-integ-tools": "0.0.0",
"cfn2ts": "0.0.0",
"jest": "^26.4.2",
"lodash": "^4.17.20",
"nodeunit": "^0.11.3",
"pkglint": "0.0.0"
},
"dependencies": {
Expand Down
Loading

0 comments on commit fb54aad

Please sign in to comment.