apify-test-tools 0.6.0 → 0.6.1
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/.github/workflows/_check_code.yaml +17 -19
- package/.github/workflows/_update_release_metadata.yaml +1 -1
- package/.github/workflows/manual_release_stable.yaml +1 -0
- package/.github/workflows/on_master.yaml +2 -0
- package/.husky/pre-commit +13 -0
- package/CHANGELOG.md +11 -3
- package/CONTRIBUTING.md +5 -0
- package/README.md +39 -43
- package/bin/build.ts +138 -87
- package/bin/diff-changes.ts +156 -0
- package/bin/diff-json-schema.ts +50 -0
- package/bin/git.ts +42 -11
- package/bin/github.ts +7 -6
- package/bin/main.ts +21 -11
- package/bin/slack.ts +6 -2
- package/bin/test-report.ts +55 -44
- package/bin/types.ts +56 -59
- package/bin/utils.ts +19 -131
- package/dist/bin/build.d.ts +1 -1
- package/dist/bin/build.d.ts.map +1 -1
- package/dist/bin/build.js +49 -31
- package/dist/bin/build.js.map +1 -1
- package/dist/bin/diff-changes.d.ts +16 -0
- package/dist/bin/diff-changes.d.ts.map +1 -0
- package/dist/bin/diff-changes.js +103 -0
- package/dist/bin/diff-changes.js.map +1 -0
- package/dist/bin/diff-json-schema.d.ts +7 -0
- package/dist/bin/diff-json-schema.d.ts.map +1 -0
- package/dist/bin/diff-json-schema.js +45 -0
- package/dist/bin/diff-json-schema.js.map +1 -0
- package/dist/bin/git.d.ts +8 -3
- package/dist/bin/git.d.ts.map +1 -1
- package/dist/bin/git.js +35 -10
- package/dist/bin/git.js.map +1 -1
- package/dist/bin/github.d.ts +1 -3
- package/dist/bin/github.d.ts.map +1 -1
- package/dist/bin/github.js +5 -5
- package/dist/bin/github.js.map +1 -1
- package/dist/bin/main.js +14 -5
- package/dist/bin/main.js.map +1 -1
- package/dist/bin/slack.d.ts +1 -1
- package/dist/bin/slack.d.ts.map +1 -1
- package/dist/bin/slack.js +1 -1
- package/dist/bin/slack.js.map +1 -1
- package/dist/bin/test-report.d.ts.map +1 -1
- package/dist/bin/test-report.js +9 -3
- package/dist/bin/test-report.js.map +1 -1
- package/dist/bin/types.d.ts +0 -1
- package/dist/bin/types.d.ts.map +1 -1
- package/dist/bin/utils.d.ts +0 -14
- package/dist/bin/utils.d.ts.map +1 -1
- package/dist/bin/utils.js +12 -95
- package/dist/bin/utils.js.map +1 -1
- package/dist/lib/extend-expect.d.ts.map +1 -1
- package/dist/lib/extend-expect.js +11 -11
- package/dist/lib/extend-expect.js.map +1 -1
- package/dist/lib/lib.d.ts +3 -2
- package/dist/lib/lib.d.ts.map +1 -1
- package/dist/lib/lib.js +7 -3
- package/dist/lib/lib.js.map +1 -1
- package/dist/lib/run-test-result.d.ts +1 -1
- package/dist/lib/run-test-result.d.ts.map +1 -1
- package/dist/lib/run-test-result.js.map +1 -1
- package/dist/lib/types.d.ts +2 -3
- package/dist/lib/types.d.ts.map +1 -1
- package/dist/lib/utils.d.ts +1 -1
- package/dist/lib/utils.d.ts.map +1 -1
- package/dist/lib/utils.js +4 -1
- package/dist/lib/utils.js.map +1 -1
- package/dist/test/unit/bin/diff-changes.test.d.ts +2 -0
- package/dist/test/unit/bin/diff-changes.test.d.ts.map +1 -0
- package/dist/test/unit/bin/diff-changes.test.js +159 -0
- package/dist/test/unit/bin/diff-changes.test.js.map +1 -0
- package/dist/test/unit/bin/diff.test.d.ts +2 -0
- package/dist/test/unit/bin/diff.test.d.ts.map +1 -0
- package/dist/test/unit/bin/diff.test.js +143 -0
- package/dist/test/unit/bin/diff.test.js.map +1 -0
- package/dist/test/unit/bin/git.test.js +48 -19
- package/dist/test/unit/bin/git.test.js.map +1 -1
- package/dist/test/unit/custom-matchers.test.js +3 -8
- package/dist/test/unit/custom-matchers.test.js.map +1 -1
- package/dist/test/unit/parse-commit.test.js +1 -1
- package/dist/test/unit/parse-commit.test.js.map +1 -1
- package/dist/test/unit/should-built-and-test.test.js +159 -39
- package/dist/test/unit/should-built-and-test.test.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/eslint.config.mjs +4 -2
- package/knip.json +1 -1
- package/lib/extend-expect.ts +21 -21
- package/lib/lib.ts +17 -17
- package/lib/run-test-result.ts +6 -2
- package/lib/types.ts +5 -8
- package/lib/utils.ts +13 -9
- package/package.json +10 -3
- package/test/tsconfig.json +2 -4
- package/test/unit/bin/diff-changes.test.ts +182 -0
- package/test/unit/bin/diff.test.ts +212 -0
- package/test/unit/bin/git.test.ts +59 -20
- package/test/unit/custom-matchers.test.ts +10 -9
- package/test/unit/parse-commit.test.ts +2 -1
- package/test/unit/should-built-and-test.test.ts +181 -40
- package/bin/consts.ts +0 -6
- package/dist/bin/consts.d.ts +0 -4
- package/dist/bin/consts.d.ts.map +0 -1
- package/dist/bin/consts.js +0 -6
- package/dist/bin/consts.js.map +0 -1
- package/example-github-events/pull-request.json +0 -523
- package/example-github-events/push.json +0 -216
|
@@ -1,216 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"ref": "refs/heads/master",
|
|
3
|
-
"before": "e15bf2a167bec5681afef2a5c057b8a10b78850d",
|
|
4
|
-
"after": "7f9e105e4ce7881f9def76db60bd8e4e58ead9f2",
|
|
5
|
-
"repository": {
|
|
6
|
-
"id": 530628540,
|
|
7
|
-
"node_id": "R_kgDOH6C_vA",
|
|
8
|
-
"name": "store-booking",
|
|
9
|
-
"full_name": "apify-projects/store-booking",
|
|
10
|
-
"private": true,
|
|
11
|
-
"owner": {
|
|
12
|
-
"name": "apify-projects",
|
|
13
|
-
"email": "hello@apify.com",
|
|
14
|
-
"login": "apify-projects",
|
|
15
|
-
"id": 69005150,
|
|
16
|
-
"node_id": "MDEyOk9yZ2FuaXphdGlvbjY5MDA1MTUw",
|
|
17
|
-
"avatar_url": "https://avatars.githubusercontent.com/u/69005150?v=4",
|
|
18
|
-
"gravatar_id": "",
|
|
19
|
-
"url": "https://api.github.com/users/apify-projects",
|
|
20
|
-
"html_url": "https://github.com/apify-projects",
|
|
21
|
-
"followers_url": "https://api.github.com/users/apify-projects/followers",
|
|
22
|
-
"following_url": "https://api.github.com/users/apify-projects/following{/other_user}",
|
|
23
|
-
"gists_url": "https://api.github.com/users/apify-projects/gists{/gist_id}",
|
|
24
|
-
"starred_url": "https://api.github.com/users/apify-projects/starred{/owner}{/repo}",
|
|
25
|
-
"subscriptions_url": "https://api.github.com/users/apify-projects/subscriptions",
|
|
26
|
-
"organizations_url": "https://api.github.com/users/apify-projects/orgs",
|
|
27
|
-
"repos_url": "https://api.github.com/users/apify-projects/repos",
|
|
28
|
-
"events_url": "https://api.github.com/users/apify-projects/events{/privacy}",
|
|
29
|
-
"received_events_url": "https://api.github.com/users/apify-projects/received_events",
|
|
30
|
-
"type": "Organization",
|
|
31
|
-
"site_admin": false
|
|
32
|
-
},
|
|
33
|
-
"html_url": "https://github.com/apify-projects/store-booking",
|
|
34
|
-
"description": null,
|
|
35
|
-
"fork": false,
|
|
36
|
-
"url": "https://github.com/apify-projects/store-booking",
|
|
37
|
-
"forks_url": "https://api.github.com/repos/apify-projects/store-booking/forks",
|
|
38
|
-
"keys_url": "https://api.github.com/repos/apify-projects/store-booking/keys{/key_id}",
|
|
39
|
-
"collaborators_url": "https://api.github.com/repos/apify-projects/store-booking/collaborators{/collaborator}",
|
|
40
|
-
"teams_url": "https://api.github.com/repos/apify-projects/store-booking/teams",
|
|
41
|
-
"hooks_url": "https://api.github.com/repos/apify-projects/store-booking/hooks",
|
|
42
|
-
"issue_events_url": "https://api.github.com/repos/apify-projects/store-booking/issues/events{/number}",
|
|
43
|
-
"events_url": "https://api.github.com/repos/apify-projects/store-booking/events",
|
|
44
|
-
"assignees_url": "https://api.github.com/repos/apify-projects/store-booking/assignees{/user}",
|
|
45
|
-
"branches_url": "https://api.github.com/repos/apify-projects/store-booking/branches{/branch}",
|
|
46
|
-
"tags_url": "https://api.github.com/repos/apify-projects/store-booking/tags",
|
|
47
|
-
"blobs_url": "https://api.github.com/repos/apify-projects/store-booking/git/blobs{/sha}",
|
|
48
|
-
"git_tags_url": "https://api.github.com/repos/apify-projects/store-booking/git/tags{/sha}",
|
|
49
|
-
"git_refs_url": "https://api.github.com/repos/apify-projects/store-booking/git/refs{/sha}",
|
|
50
|
-
"trees_url": "https://api.github.com/repos/apify-projects/store-booking/git/trees{/sha}",
|
|
51
|
-
"statuses_url": "https://api.github.com/repos/apify-projects/store-booking/statuses/{sha}",
|
|
52
|
-
"languages_url": "https://api.github.com/repos/apify-projects/store-booking/languages",
|
|
53
|
-
"stargazers_url": "https://api.github.com/repos/apify-projects/store-booking/stargazers",
|
|
54
|
-
"contributors_url": "https://api.github.com/repos/apify-projects/store-booking/contributors",
|
|
55
|
-
"subscribers_url": "https://api.github.com/repos/apify-projects/store-booking/subscribers",
|
|
56
|
-
"subscription_url": "https://api.github.com/repos/apify-projects/store-booking/subscription",
|
|
57
|
-
"commits_url": "https://api.github.com/repos/apify-projects/store-booking/commits{/sha}",
|
|
58
|
-
"git_commits_url": "https://api.github.com/repos/apify-projects/store-booking/git/commits{/sha}",
|
|
59
|
-
"comments_url": "https://api.github.com/repos/apify-projects/store-booking/comments{/number}",
|
|
60
|
-
"issue_comment_url": "https://api.github.com/repos/apify-projects/store-booking/issues/comments{/number}",
|
|
61
|
-
"contents_url": "https://api.github.com/repos/apify-projects/store-booking/contents/{+path}",
|
|
62
|
-
"compare_url": "https://api.github.com/repos/apify-projects/store-booking/compare/{base}...{head}",
|
|
63
|
-
"merges_url": "https://api.github.com/repos/apify-projects/store-booking/merges",
|
|
64
|
-
"archive_url": "https://api.github.com/repos/apify-projects/store-booking/{archive_format}{/ref}",
|
|
65
|
-
"downloads_url": "https://api.github.com/repos/apify-projects/store-booking/downloads",
|
|
66
|
-
"issues_url": "https://api.github.com/repos/apify-projects/store-booking/issues{/number}",
|
|
67
|
-
"pulls_url": "https://api.github.com/repos/apify-projects/store-booking/pulls{/number}",
|
|
68
|
-
"milestones_url": "https://api.github.com/repos/apify-projects/store-booking/milestones{/number}",
|
|
69
|
-
"notifications_url": "https://api.github.com/repos/apify-projects/store-booking/notifications{?since,all,participating}",
|
|
70
|
-
"labels_url": "https://api.github.com/repos/apify-projects/store-booking/labels{/name}",
|
|
71
|
-
"releases_url": "https://api.github.com/repos/apify-projects/store-booking/releases{/id}",
|
|
72
|
-
"deployments_url": "https://api.github.com/repos/apify-projects/store-booking/deployments",
|
|
73
|
-
"created_at": 1661859371,
|
|
74
|
-
"updated_at": "2024-07-01T22:15:13Z",
|
|
75
|
-
"pushed_at": 1721436715,
|
|
76
|
-
"git_url": "git://github.com/apify-projects/store-booking.git",
|
|
77
|
-
"ssh_url": "git@github.com:apify-projects/store-booking.git",
|
|
78
|
-
"clone_url": "https://github.com/apify-projects/store-booking.git",
|
|
79
|
-
"svn_url": "https://github.com/apify-projects/store-booking",
|
|
80
|
-
"homepage": "",
|
|
81
|
-
"size": 3080,
|
|
82
|
-
"stargazers_count": 0,
|
|
83
|
-
"watchers_count": 0,
|
|
84
|
-
"language": "TypeScript",
|
|
85
|
-
"has_issues": true,
|
|
86
|
-
"has_projects": true,
|
|
87
|
-
"has_downloads": true,
|
|
88
|
-
"has_wiki": true,
|
|
89
|
-
"has_pages": false,
|
|
90
|
-
"has_discussions": false,
|
|
91
|
-
"forks_count": 1,
|
|
92
|
-
"mirror_url": null,
|
|
93
|
-
"archived": false,
|
|
94
|
-
"disabled": false,
|
|
95
|
-
"open_issues_count": 19,
|
|
96
|
-
"license": {
|
|
97
|
-
"key": "apache-2.0",
|
|
98
|
-
"name": "Apache License 2.0",
|
|
99
|
-
"spdx_id": "Apache-2.0",
|
|
100
|
-
"url": "https://api.github.com/licenses/apache-2.0",
|
|
101
|
-
"node_id": "MDc6TGljZW5zZTI="
|
|
102
|
-
},
|
|
103
|
-
"allow_forking": true,
|
|
104
|
-
"is_template": false,
|
|
105
|
-
"web_commit_signoff_required": false,
|
|
106
|
-
"topics": [],
|
|
107
|
-
"visibility": "private",
|
|
108
|
-
"forks": 1,
|
|
109
|
-
"open_issues": 19,
|
|
110
|
-
"watchers": 0,
|
|
111
|
-
"default_branch": "master",
|
|
112
|
-
"stargazers": 0,
|
|
113
|
-
"master_branch": "master",
|
|
114
|
-
"organization": "apify-projects",
|
|
115
|
-
"custom_properties": {}
|
|
116
|
-
},
|
|
117
|
-
"pusher": {
|
|
118
|
-
"name": "lhotanok",
|
|
119
|
-
"email": "84460709+lhotanok@users.noreply.github.com"
|
|
120
|
-
},
|
|
121
|
-
"organization": {
|
|
122
|
-
"login": "apify-projects",
|
|
123
|
-
"id": 69005150,
|
|
124
|
-
"node_id": "MDEyOk9yZ2FuaXphdGlvbjY5MDA1MTUw",
|
|
125
|
-
"url": "https://api.github.com/orgs/apify-projects",
|
|
126
|
-
"repos_url": "https://api.github.com/orgs/apify-projects/repos",
|
|
127
|
-
"events_url": "https://api.github.com/orgs/apify-projects/events",
|
|
128
|
-
"hooks_url": "https://api.github.com/orgs/apify-projects/hooks",
|
|
129
|
-
"issues_url": "https://api.github.com/orgs/apify-projects/issues",
|
|
130
|
-
"members_url": "https://api.github.com/orgs/apify-projects/members{/member}",
|
|
131
|
-
"public_members_url": "https://api.github.com/orgs/apify-projects/public_members{/member}",
|
|
132
|
-
"avatar_url": "https://avatars.githubusercontent.com/u/69005150?v=4",
|
|
133
|
-
"description": "This organization houses projects that are not part of Apify itself, such as enterprise or marketplace developed actors and scrapers."
|
|
134
|
-
},
|
|
135
|
-
"sender": {
|
|
136
|
-
"login": "lhotanok",
|
|
137
|
-
"id": 84460709,
|
|
138
|
-
"node_id": "MDQ6VXNlcjg0NDYwNzA5",
|
|
139
|
-
"avatar_url": "https://avatars.githubusercontent.com/u/84460709?v=4",
|
|
140
|
-
"gravatar_id": "",
|
|
141
|
-
"url": "https://api.github.com/users/lhotanok",
|
|
142
|
-
"html_url": "https://github.com/lhotanok",
|
|
143
|
-
"followers_url": "https://api.github.com/users/lhotanok/followers",
|
|
144
|
-
"following_url": "https://api.github.com/users/lhotanok/following{/other_user}",
|
|
145
|
-
"gists_url": "https://api.github.com/users/lhotanok/gists{/gist_id}",
|
|
146
|
-
"starred_url": "https://api.github.com/users/lhotanok/starred{/owner}{/repo}",
|
|
147
|
-
"subscriptions_url": "https://api.github.com/users/lhotanok/subscriptions",
|
|
148
|
-
"organizations_url": "https://api.github.com/users/lhotanok/orgs",
|
|
149
|
-
"repos_url": "https://api.github.com/users/lhotanok/repos",
|
|
150
|
-
"events_url": "https://api.github.com/users/lhotanok/events{/privacy}",
|
|
151
|
-
"received_events_url": "https://api.github.com/users/lhotanok/received_events",
|
|
152
|
-
"type": "User",
|
|
153
|
-
"site_admin": false
|
|
154
|
-
},
|
|
155
|
-
"created": false,
|
|
156
|
-
"deleted": false,
|
|
157
|
-
"forced": false,
|
|
158
|
-
"base_ref": null,
|
|
159
|
-
"compare": "https://github.com/apify-projects/store-booking/compare/6b186d1fa8b6...591b7f55c7b8",
|
|
160
|
-
"commits": [
|
|
161
|
-
{
|
|
162
|
-
"id": "7f9e105e4ce7881f9def76db60bd8e4e58ead9f2",
|
|
163
|
-
"tree_id": "3f16d04f6d1cb44f8b90015a69168fdcc29621e1",
|
|
164
|
-
"distinct": true,
|
|
165
|
-
"message": "fix: A",
|
|
166
|
-
"timestamp": "2024-07-20T02:51:54+02:00",
|
|
167
|
-
"url": "https://github.com/apify-projects/store-booking/commit/591b7f55c7b8feb5012937f870d43266b0650118",
|
|
168
|
-
"author": {
|
|
169
|
-
"name": "Kristýna Lhoťanová",
|
|
170
|
-
"email": "84460709+lhotanok@users.noreply.github.com",
|
|
171
|
-
"username": "oklinov"
|
|
172
|
-
},
|
|
173
|
-
"committer": {
|
|
174
|
-
"name": "GitHub",
|
|
175
|
-
"email": "noreply@github.com",
|
|
176
|
-
"username": "web-flow"
|
|
177
|
-
}
|
|
178
|
-
},
|
|
179
|
-
{
|
|
180
|
-
"id": "3d1556141893eb3b7f281702e5cbec13d8814156",
|
|
181
|
-
"tree_id": "3f16d04f6d1cb44f8b90015a69168fdcc29621e1",
|
|
182
|
-
"distinct": true,
|
|
183
|
-
"message": "feat: A",
|
|
184
|
-
"timestamp": "2024-07-20T02:51:54+02:00",
|
|
185
|
-
"url": "https://github.com/apify-projects/store-booking/commit/591b7f55c7b8feb5012937f870d43266b0650118",
|
|
186
|
-
"author": {
|
|
187
|
-
"name": "Kristýna Lhoťanová",
|
|
188
|
-
"email": "84460709+lhotanok@users.noreply.github.com",
|
|
189
|
-
"username": "oklinov"
|
|
190
|
-
},
|
|
191
|
-
"committer": {
|
|
192
|
-
"name": "GitHub",
|
|
193
|
-
"email": "noreply@github.com",
|
|
194
|
-
"username": "web-flow"
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
],
|
|
198
|
-
"head_commit": {
|
|
199
|
-
"id": "591b7f55c7b8feb5012937f870d43266b0650118",
|
|
200
|
-
"tree_id": "3f16d04f6d1cb44f8b90015a69168fdcc29621e1",
|
|
201
|
-
"distinct": true,
|
|
202
|
-
"message": "fix: validate rendered detail page locale (both language & currency) (#133)",
|
|
203
|
-
"timestamp": "2024-07-20T02:51:54+02:00",
|
|
204
|
-
"url": "https://github.com/apify-projects/store-booking/commit/591b7f55c7b8feb5012937f870d43266b0650118",
|
|
205
|
-
"author": {
|
|
206
|
-
"name": "Kristýna Lhoťanová",
|
|
207
|
-
"email": "84460709+lhotanok@users.noreply.github.com",
|
|
208
|
-
"username": "lhotanok"
|
|
209
|
-
},
|
|
210
|
-
"committer": {
|
|
211
|
-
"name": "GitHub",
|
|
212
|
-
"email": "noreply@github.com",
|
|
213
|
-
"username": "web-flow"
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
}
|