Commit a6ef9a7
committed
test: add comprehensive unit tests for dependency_updater helper functions
- Add tests for generateGithubRepoUrl (valid + nil guard)
- Add tests for writeToVersionsJson (success + invalid path)
- Add tests for createVersionsEnv (basic, branch tracking, sorted output, invalid path)
- Add tests for writeToGithubOutput (normal + missing env var)
- Add tests for createCommitMessage in githubAction mode
- Add tests for updateVersionTagAndCommit (in-memory + file write)
- Add nil-safety guard to generateGithubRepoUrl for unknown keys
Increases test coverage from 0 to 389 lines across 12 test functions.1 parent 4e715e4 commit a6ef9a7
2 files changed
Lines changed: 394 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
407 | 407 | | |
408 | 408 | | |
409 | 409 | | |
410 | | - | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
411 | 415 | | |
0 commit comments