Skip to content

Commit

Permalink
feat: add snapshot tests for stacks (#493)
Browse files Browse the repository at this point in the history
Signed-off-by: hxtree <[email protected]>
  • Loading branch information
hxtree authored Nov 4, 2023
1 parent a2d50f9 commit 4c3a7a8
Show file tree
Hide file tree
Showing 174 changed files with 5,911 additions and 482 deletions.
28 changes: 23 additions & 5 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,16 +1,34 @@
* text=auto

.* text eol=lf
*.css text eol=lf
*.html text eol=lf
*.jade text eol=lf
*.js text eol=lf
*.ts text eol=lf
*.json text eol=lf
*.less text eol=lf
*.scss text eol=lf
*.md text eol=lf
*.sh text eol=lf
*.txt text eol=lf
*.xml text eol=lf

# TypeScript source file
*.ts text eol=lf
*.ts linguist-detectable=true
*.ts linguist-documentation=false
*.ts linguist-language=TypeScript
*.tsx linguist-detectable=true
*.tsx linguist-documentation=false
*.tsx linguist-language=TypeScript

# JSON (JavaScript Object Notation) source file
*.json text eol=lf
*.json linguist-detectable=false
*.json linguist-documentation=false
*.json linguist-language=JSON-with-Comments

# CSS (Cascade Styling Sheets) stylesheet file
*.css text eol=lf
*.css linguist-detectable=true
*.css linguist-documentation=false
*.css linguist-language=CSS

*.less text eol=lf
*.scss text eol=lf
4 changes: 1 addition & 3 deletions .github/workflows/call-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,9 @@ jobs:
timeout-minutes: 25
runs-on: ubuntu-latest
steps:
# pipeline get changed projects requires deep clone
- name: Check out code base
uses: actions/checkout@v3
with:
fetch-depth: 0
ref: ${{ secrets.IMPACTED_BY_SHA }}

- name: Setup Node
uses: actions/setup-node@v3
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@cats-cradle/eslint-config",
"comment": "",
"type": "none"
}
],
"packageName": "@cats-cradle/eslint-config"
}
26 changes: 13 additions & 13 deletions common/config/rush/browser-approved-packages.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
{
"name": "@anatine/esbuild-decorators",
"allowedCategories": [ "apis", "rigs" ]
"allowedCategories": [ "apis", "platform", "rigs" ]
},
{
"name": "@aws-cdk/core",
Expand Down Expand Up @@ -216,19 +216,19 @@
},
{
"name": "@pnpm/find-workspace-dir",
"allowedCategories": [ "rigs" ]
"allowedCategories": [ "platform", "rigs" ]
},
{
"name": "@pnpm/find-workspace-packages",
"allowedCategories": [ "rigs" ]
"allowedCategories": [ "platform", "rigs" ]
},
{
"name": "@pnpm/logger",
"allowedCategories": [ "rigs" ]
"allowedCategories": [ "platform", "rigs" ]
},
{
"name": "@pnpm/types",
"allowedCategories": [ "rigs" ]
"allowedCategories": [ "platform", "rigs" ]
},
{
"name": "@reduxjs/toolkit",
Expand All @@ -244,11 +244,11 @@
},
{
"name": "@rushstack/heft",
"allowedCategories": [ "rigs" ]
"allowedCategories": [ "platform", "rigs" ]
},
{
"name": "@rushstack/heft-node-rig",
"allowedCategories": [ "rigs" ]
"allowedCategories": [ "platform", "rigs" ]
},
{
"name": "@rushstack/node-core-library",
Expand Down Expand Up @@ -348,7 +348,7 @@
},
{
"name": "archiver",
"allowedCategories": [ "rigs" ]
"allowedCategories": [ "platform", "rigs" ]
},
{
"name": "autoprefixer",
Expand Down Expand Up @@ -396,7 +396,7 @@
},
{
"name": "chokidar",
"allowedCategories": [ "rigs" ]
"allowedCategories": [ "platform", "rigs" ]
},
{
"name": "chrome-aws-lambda",
Expand All @@ -420,7 +420,7 @@
},
{
"name": "commander",
"allowedCategories": [ "rigs" ]
"allowedCategories": [ "platform", "rigs" ]
},
{
"name": "connection-string",
Expand Down Expand Up @@ -496,7 +496,7 @@
},
{
"name": "fs-extra",
"allowedCategories": [ "rigs" ]
"allowedCategories": [ "platform", "rigs" ]
},
{
"name": "handlebars",
Expand Down Expand Up @@ -708,7 +708,7 @@
},
{
"name": "tsc-alias",
"allowedCategories": [ "rigs" ]
"allowedCategories": [ "platform", "rigs" ]
},
{
"name": "tsdx",
Expand All @@ -732,7 +732,7 @@
},
{
"name": "yargs",
"allowedCategories": [ "rigs" ]
"allowedCategories": [ "platform", "rigs" ]
}
]
}
7 changes: 7 additions & 0 deletions common/config/rush/command-line.json
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,13 @@
}
],
"parameters": [
{
"parameterKind": "flag",
"longName": "--update-snapshot",
"shortName": "-u",
"description": "Whether to update the snapshots",
"associatedCommands": ["test:cov", "test"]
},
{
"parameterKind": "choice",
"longName": "--profile",
Expand Down
Loading

0 comments on commit 4c3a7a8

Please sign in to comment.