@horietakehiro/aws-cdk-utul 0.9.0 → 0.10.0

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 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, and less mistaken for you to code AWS CDK unit tests.**
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
- When you code AWS CDK unit tests in some IDE(e.g. VSCode), `TypedTemplate` class provides you a type hinting and type validation for (alomost) all AWS CloudFormation resource types.
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
  ![type-hinting-1](./docs/type-hinting-1.png)
22
22
 
23
- The key concepts are:
24
- - You can define unit tests for your AWS CloudFormation templates by using well-type-defined methods via `TypedTemplate` class - a proxy for original `Template` class.
25
- - Returned values from methods of `TypedTemplate` are also well-type-defined.
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 original `Match` class.
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@horietakehiro/aws-cdk-utul",
3
3
  "license": "MIT",
4
- "version": "0.9.0",
4
+ "version": "0.10.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/horietakehiro/aws-cdk-utul"
@@ -21,17 +21,17 @@
21
21
  "jest": "^29.7.0",
22
22
  "ts-jest": "^29.1.2",
23
23
  "ts-node": "^10.9.2",
24
- "typescript": "~5.3.3"
25
- },
26
- "dependencies": {
24
+ "typescript": "~5.3.3",
27
25
  "@types/decompress": "^4.2.7",
28
26
  "@types/node-fetch": "^2.6.11",
29
- "aws-cdk-lib": "2.X.0",
30
- "constructs": "^10.0.0",
31
27
  "decompress": "^4.2.1",
32
28
  "https-proxy-agent": "^7.0.5",
33
29
  "json-schema-to-typescript": "^15.0.2",
34
30
  "node-fetch": "^2.7.0",
35
31
  "source-map-support": "^0.5.21"
32
+ },
33
+ "dependencies": {
34
+ "aws-cdk-lib": "2.X.0",
35
+ "constructs": "^10.0.0"
36
36
  }
37
37
  }
package/.env DELETED
@@ -1 +0,0 @@
1
- export NODE_OPTIONS="$NODE_OPTIONS --experimental-vm-modules"
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
- }