-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
136 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
module.exports = { | ||
"*.js": ["prettier --write", "eslint --format=pretty --quiet --fix --cache"], | ||
"*.ts": () => ["pnpm format", "pnpm typecheck", "pnpm test --only-changed"], | ||
"*.ts": () => [ | ||
"pnpm format", | ||
"pnpm typecheck", | ||
"pnpm test -- --only-changed", | ||
], | ||
"*.{json,yml,md}": "prettier --write --ignore-unknown", | ||
"*.sh": "shellcheck", | ||
}; |
124 changes: 124 additions & 0 deletions
124
src/lib/__tests__/__snapshots__/base-stack.test.ts.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,124 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`BaseStack generates an expected CloudFormation template 1`] = ` | ||
{ | ||
"Parameters": { | ||
"BootstrapVersion": { | ||
"Default": "/cdk-bootstrap/hnb659fds/version", | ||
"Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]", | ||
"Type": "AWS::SSM::Parameter::Value<String>", | ||
}, | ||
}, | ||
"Resources": { | ||
"Bucket83908E77": { | ||
"DeletionPolicy": "Retain", | ||
"Properties": { | ||
"Tags": [ | ||
{ | ||
"Key": "myorg:application:description", | ||
"Value": "Opinionated CDK Typescript Boilerplate", | ||
}, | ||
{ | ||
"Key": "myorg:application:environment", | ||
"Value": "prod", | ||
}, | ||
{ | ||
"Key": "myorg:application:name", | ||
"Value": "cdk-app-ts-boilerplate", | ||
}, | ||
{ | ||
"Key": "myorg:application:repository", | ||
"Value": "https://github.com/dashmug/cdk-app-ts-boilerplate", | ||
}, | ||
{ | ||
"Key": "myorg:project:customer", | ||
"Value": "myclient", | ||
}, | ||
{ | ||
"Key": "myorg:project:name", | ||
"Value": "myproject", | ||
}, | ||
{ | ||
"Key": "myorg:project:owner", | ||
"Value": "myteam", | ||
}, | ||
{ | ||
"Key": "myorg:stack:name", | ||
"Value": "TestStack", | ||
}, | ||
], | ||
}, | ||
"Type": "AWS::S3::Bucket", | ||
"UpdateReplacePolicy": "Retain", | ||
}, | ||
"Queue4A7E3555": { | ||
"DeletionPolicy": "Delete", | ||
"Properties": { | ||
"Tags": [ | ||
{ | ||
"Key": "myorg:application:description", | ||
"Value": "Opinionated CDK Typescript Boilerplate", | ||
}, | ||
{ | ||
"Key": "myorg:application:environment", | ||
"Value": "prod", | ||
}, | ||
{ | ||
"Key": "myorg:application:name", | ||
"Value": "cdk-app-ts-boilerplate", | ||
}, | ||
{ | ||
"Key": "myorg:application:repository", | ||
"Value": "https://github.com/dashmug/cdk-app-ts-boilerplate", | ||
}, | ||
{ | ||
"Key": "myorg:project:customer", | ||
"Value": "myclient", | ||
}, | ||
{ | ||
"Key": "myorg:project:name", | ||
"Value": "myproject", | ||
}, | ||
{ | ||
"Key": "myorg:project:owner", | ||
"Value": "myteam", | ||
}, | ||
{ | ||
"Key": "myorg:stack:name", | ||
"Value": "TestStack", | ||
}, | ||
], | ||
}, | ||
"Type": "AWS::SQS::Queue", | ||
"UpdateReplacePolicy": "Delete", | ||
}, | ||
}, | ||
"Rules": { | ||
"CheckBootstrapVersion": { | ||
"Assertions": [ | ||
{ | ||
"Assert": { | ||
"Fn::Not": [ | ||
{ | ||
"Fn::Contains": [ | ||
[ | ||
"1", | ||
"2", | ||
"3", | ||
"4", | ||
"5", | ||
], | ||
{ | ||
"Ref": "BootstrapVersion", | ||
}, | ||
], | ||
}, | ||
], | ||
}, | ||
"AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI.", | ||
}, | ||
], | ||
}, | ||
}, | ||
} | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters