Commit 16cb8b6
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. In addition, some of the behavior provided by
`@metamask/auto-changelog` is also covered, because it seemed to make
sense. Some failure cases are also covered as well — this was done for
exploratory reasons, and an argument could be made that we don't need
these sort of tests right now.1 parent d0ab412 commit 16cb8b6
File tree
10 files changed
+5784
-15
lines changed- dist
- src
- tests/helpers
10 files changed
+5784
-15
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 | | |
| |||
0 commit comments