Skip to content

fix: resolve test failures in releases-github and process-lock#112

Merged
jdalton merged 1 commit intomainfrom
fix/test-failures
Mar 26, 2026
Merged

fix: resolve test failures in releases-github and process-lock#112
jdalton merged 1 commit intomainfrom
fix/test-failures

Conversation

@jdalton
Copy link
Copy Markdown
Collaborator

@jdalton jdalton commented Mar 26, 2026

Summary

  • releases/github: Guard against missing assets array in GitHub release API response to prevent Cannot read properties of undefined crash
  • process-lock: Fix Windows path separator handling — lastIndexOf('/') missed \ separators, causing ENOENT on nested lock paths
  • test: Fix mock to use mockResolvedValue instead of mockResolvedValueOnce so retry attempts get valid responses

Test plan

  • CI passes on all matrix combinations (Node 20/22/24 × Ubuntu/Windows)
  • releases-github.test.mts — "should throw error when pattern does not match any asset" passes
  • dlx/manifest.test.mts — "should create manifest directory if it does not exist" passes on Windows

- Guard against missing assets array in GitHub release API response
- Fix test mock to cover retry attempts in getReleaseAssetUrl
- Fix Windows path separator handling in process-lock directory creation
@jdalton jdalton merged commit 8c71c30 into main Mar 26, 2026
12 checks passed
@jdalton jdalton deleted the fix/test-failures branch March 26, 2026 16:21
@jdalton jdalton mentioned this pull request Mar 26, 2026
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant