declapract-typescript-ehmpathy 0.22.1 → 0.22.2

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.
@@ -67,7 +67,7 @@ jobs:
67
67
 
68
68
  - name: terraform plan
69
69
  id: plan
70
- run: terraform plan | tee ./plan.log
70
+ run: terraform plan -detailed-exitcode | tee ./plan.log
71
71
  env:
72
72
  GITHUB_TOKEN: ${{ secrets.github-token }} # allow specifying a github token to pass to the terraform command
73
73
 
@@ -0,0 +1,5 @@
1
+ /**
2
+ * specify that dynamodb should use the local dynamodb database, if running in test env
3
+ */
4
+ if (stage === Stage.TEST)
5
+ process.env.USE_CUSTOM_DYNAMODB_ENDPOINT = 'http://localhost:7337';
@@ -0,0 +1,3 @@
1
+ import { FileCheckType } from 'declapract';
2
+
3
+ export const check = FileCheckType.CONTAINS;
@@ -0,0 +1,3 @@
1
+ endpoints {
2
+ dynamodb = "http://localhost:7337/"
3
+ }
@@ -0,0 +1,3 @@
1
+ import { FileCheckType } from 'declapract';
2
+
3
+ export const check = FileCheckType.CONTAINS; // should contain specifier that test applies to local dynamodb
@@ -1,10 +1,6 @@
1
1
  provider "aws" {
2
2
  region = "us-east-1"
3
3
  allowed_account_ids = ["@declapract{variable.awsAccountId.dev}"] # `test` environment resources are provisioned in the `dev` aws account
4
-
5
- endpoints {
6
- dynamodb = "http://localhost:7337/"
7
- }
8
4
  }
9
5
 
10
6
  terraform {
@@ -10,9 +10,3 @@ jest.setTimeout(90000); // since we're calling downstream apis
10
10
  */
11
11
  if (stage !== Stage.TEST && process.env.I_KNOW_WHAT_IM_DOING !== 'true')
12
12
  throw new Error(`integration-test is not targeting stage 'test'`);
13
-
14
- /**
15
- * specify that dynamodb should use the local dynamodb database, if running in test env
16
- */
17
- if (stage === Stage.TEST)
18
- process.env.USE_CUSTOM_DYNAMODB_ENDPOINT = 'http://localhost:7337';
@@ -5,6 +5,7 @@
5
5
  "noPropertyAccessFromIndexSignature": false,
6
6
  "noUnusedLocals": false, // this is something a linter should warn on, not something a compiler should fail on
7
7
  "noUnusedParameters": false, // this is something a linter should warn on, not something a compiler should fail on
8
+ "exactOptionalPropertyTypes": false, // too clunky when `{ name?: string }` !== `{ name?: string | undefined }`. too rare of a cause of issue to be worth it
8
9
  "noImplicitOverride": false,
9
10
  "resolveJsonModule": true,
10
11
  "sourceMap": true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "declapract-typescript-ehmpathy",
3
- "version": "0.22.1",
3
+ "version": "0.22.2",
4
4
  "description": "declapract best practices declarations for typescript",
5
5
  "main": "src/index.js",
6
6
  "repository": "ehmpathy/declapract-typescript-ehmpathy",