Skip to content
This repository was archived by the owner on Jun 16, 2022. It is now read-only.

Commit 117c21c

Browse files
committed
Test and refactor source
1 parent bc407d2 commit 117c21c

16 files changed

+8589
-6708
lines changed

Diff for: .eslintrc.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"env": {
33
"browser": true,
4-
"es2021": true
4+
"es2021": true,
5+
"jest/globals": true
56
},
67
"extends": [
78
"standard"
@@ -12,7 +13,8 @@
1213
"sourceType": "module"
1314
},
1415
"plugins": [
15-
"@typescript-eslint"
16+
"@typescript-eslint",
17+
"jest"
1618
],
1719
"rules": {
1820
}

Diff for: .npmrc

-1
This file was deleted.

Diff for: .prettierrc

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"semi": false,
3+
"singleQuote": true,
4+
"tabWidth": 2,
5+
"trailingComma": "none",
6+
"useTabs": false
7+
}

Diff for: action.yml

-12
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,6 @@ inputs:
66
description: "GitHub Personal Access Token (PAT). Defaults to PAT provided by Action runner"
77
required: false
88
default: ${{ github.token }}
9-
detector-name:
10-
required: false
11-
description: 'Name of the detector running the go action e.g. Go Snapshot Detector'
12-
default: 'Go Snapshot Action'
13-
detector-url:
14-
required: false
15-
description: 'URL of the detector running the go action e.g. http://github.com/dsp-testing/go-snapshot-action'
16-
default: 'http://github.com/dsp-testing/go-snapshot-action'
17-
detector-version:
18-
required: false
19-
description: 'Version of the detector running the go action e.g. 0.0.1'
20-
default: '0.0.1'
219
metadata:
2210
required: false
2311
description: 'User provided map of max key/value pairs of metadata to include with the snapshot e.g. {"lastModified": "12-31-2022"}'

0 commit comments

Comments
 (0)