Commit 6b1556b
committed
Add high-level tests
This commit adds tests which exercise the behavior of the script that
powers the majority of this action. It does this by using real Git repos
and testing the contents of real files instead of mocking out commands
and access to the filesystem.
The tests in this commit should cover all of the happy paths provided
directly by this action, as well as some behavior offered by
`@metamask/auto-changelog` is also covered, because it seemed to make
sense when thinking about how this action "should" work from a high
level.1 parent 6bf6cbc commit 6b1556b
File tree
17 files changed
+5320
-16
lines changed- dist
- src
- tests/helpers
17 files changed
+5320
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12258 | 12258 | | |
12259 | 12259 | | |
12260 | 12260 | | |
12261 | | - | |
| 12261 | + | |
| 12262 | + | |
12262 | 12263 | | |
12263 | 12264 | | |
12264 | 12265 | | |
| |||
12283 | 12284 | | |
12284 | 12285 | | |
12285 | 12286 | | |
12286 | | - | |
| 12287 | + | |
12287 | 12288 | | |
12288 | 12289 | | |
12289 | 12290 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
67 | 68 | | |
68 | 69 | | |
69 | 70 | | |
| |||
75 | 76 | | |
76 | 77 | | |
77 | 78 | | |
| 79 | + | |
78 | 80 | | |
79 | 81 | | |
80 | 82 | | |
| |||
0 commit comments