Skip to content

Commit 58e96af

Browse files
authored
fix(runtime) support snapshot testing (#38)
* Support snapshot testing by mocking code when process.mainModule is undefined * Add babel as dev dependency for unit tests
1 parent 1a7742c commit 58e96af

File tree

6 files changed

+4397
-4
lines changed

6 files changed

+4397
-4
lines changed

examples/package-lock.json

+217
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/package.json

+5-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"scripts": {
88
"build": "tsc",
99
"watch": "tsc -w",
10-
"cdk": "cdk"
10+
"cdk": "cdk",
11+
"test": "jest"
1112
},
1213
"dependencies": {
1314
"@aws-cdk/aws-dynamodb": "^1.4.0",
@@ -28,7 +29,9 @@
2829
"aws-sdk": "^2.395.0",
2930
"jest": "^23.6.0",
3031
"typescript": "^3.4.0",
31-
"tslint": "^5.10.0"
32+
"tslint": "^5.10.0",
33+
"@babel/core": "^7.4.5",
34+
"babel-core": "^7.0.0-bridge.0"
3235
},
3336
"jest": {
3437
"testMatch": [

0 commit comments

Comments
 (0)