@horietakehiro/aws-cdk-utul 0.9.0 → 0.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -8
- package/package.json +1 -1
- package/.env +0 -1
- package/docs/type-hinting-1.png +0 -0
- package/tsconfig.json +0 -42
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
</a>
|
|
7
7
|
</p>
|
|
8
8
|
|
|
9
|
-
**aws-cdk-utul(unit test utility library) makes it faster, more efficient
|
|
9
|
+
**aws-cdk-utul(unit test utility library) makes it faster, more efficient with less mistakes for you to code AWS CDK unit tests.**
|
|
10
10
|
|
|
11
11
|
---
|
|
12
12
|
|
|
@@ -16,16 +16,15 @@
|
|
|
16
16
|
|
|
17
17
|
### TypedTemplate
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
`TypedTemplate` class provides you proper type definitions for (almost) all AWS CloudFormation resource types. So you can easily and quickly code AWS CDK unit tests without trivial mistakes and googling.
|
|
20
20
|
|
|
21
21
|

|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
- You can
|
|
25
|
-
-
|
|
26
|
-
- You can still use `Matcher` and other arbitrary objects too.
|
|
23
|
+
- You can use by just wrapping AWS CDK's `Template` class.
|
|
24
|
+
- You can use all methods implemented by AWS CDK's `Template` class with proper type definitions.
|
|
25
|
+
- Return values of some methods - e.g. `findResources` - are changed from original ones, so that succeeding processes can handle and access them more easily.
|
|
26
|
+
- You can still use AWS CDK's `Matcher` class and other arbitrary objects too.
|
|
27
27
|
|
|
28
|
-
So you can quickly code AWS CDK unit tests without any trivial mistakes and googling.
|
|
29
28
|
```js
|
|
30
29
|
import { Stack } from "aws-cdk-lib";
|
|
31
30
|
import { Template } from "aws-cdk-lib/assertions";
|
|
@@ -56,7 +55,7 @@ subnets.forEach((sn) => {
|
|
|
56
55
|
|
|
57
56
|
### ExtraMatch
|
|
58
57
|
|
|
59
|
-
`ExtraMatch` class provides you some kind of a syntax sugar for
|
|
58
|
+
`ExtraMatch` class provides you some kind of a syntax sugar for AWS CDK's `Match` class.
|
|
60
59
|
|
|
61
60
|
```js
|
|
62
61
|
import { ExtraMatch } from "@horietakehiro/aws-cdk-utul/lib/assertions"
|
package/package.json
CHANGED
package/.env
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export NODE_OPTIONS="$NODE_OPTIONS --experimental-vm-modules"
|
package/docs/type-hinting-1.png
DELETED
|
Binary file
|
package/tsconfig.json
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "ES2020",
|
|
4
|
-
"module": "commonjs",
|
|
5
|
-
"lib": [
|
|
6
|
-
"es2020",
|
|
7
|
-
"dom"
|
|
8
|
-
],
|
|
9
|
-
"declaration": true,
|
|
10
|
-
"strict": true,
|
|
11
|
-
"noImplicitAny": true,
|
|
12
|
-
"strictNullChecks": true,
|
|
13
|
-
"noImplicitThis": true,
|
|
14
|
-
"alwaysStrict": true,
|
|
15
|
-
"noUnusedLocals": false,
|
|
16
|
-
"noUnusedParameters": false,
|
|
17
|
-
"noImplicitReturns": true,
|
|
18
|
-
"noFallthroughCasesInSwitch": false,
|
|
19
|
-
"inlineSourceMap": true,
|
|
20
|
-
"inlineSources": true,
|
|
21
|
-
"experimentalDecorators": true,
|
|
22
|
-
"strictPropertyInitialization": false,
|
|
23
|
-
// "emitDeclarationOnly": true,
|
|
24
|
-
"typeRoots": [
|
|
25
|
-
"./node_modules/@types",
|
|
26
|
-
// "./lib/types"
|
|
27
|
-
],
|
|
28
|
-
// "outDir": "./dist"
|
|
29
|
-
},
|
|
30
|
-
"include": [
|
|
31
|
-
"./lib",
|
|
32
|
-
"./index.ts",
|
|
33
|
-
],
|
|
34
|
-
"exclude": [
|
|
35
|
-
"node_modules",
|
|
36
|
-
"cdk.out",
|
|
37
|
-
"test",
|
|
38
|
-
"scripts",
|
|
39
|
-
"bin",
|
|
40
|
-
|
|
41
|
-
]
|
|
42
|
-
}
|