Skip to content

fix: improve previewUrl resolution error messages and add tests#36

Merged
DeDuckProject merged 2 commits intomainfrom
fix/preview-url-resolution
Mar 14, 2026
Merged

fix: improve previewUrl resolution error messages and add tests#36
DeDuckProject merged 2 commits intomainfrom
fix/preview-url-resolution

Conversation

@DeDuckProject
Copy link
Copy Markdown
Owner

When app.previewUrl is set to an env var name that isn't available in the workflow job, the action now fails with a descriptive message naming the missing variable, rather than the generic "No base URL available". Also export resolveBaseUrl and add unit tests covering all resolution paths.

DeDuckProject and others added 2 commits March 14, 2026 19:29
When app.previewUrl is set to an env var name that isn't available in
the workflow job, the action now fails with a descriptive message naming
the missing variable, rather than the generic "No base URL available".
Also export resolveBaseUrl and add unit tests covering all resolution paths.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ild dep in tests

Importing from packages/action/src/index.ts in unit tests pulled in
@git-glimpse/core by package name, which requires a prior build step
that CI doesn't run for unit tests. Moving resolveBaseUrl to its own
file with a direct source-path type import fixes the resolution error.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@DeDuckProject DeDuckProject merged commit 18c735e into main Mar 14, 2026
3 checks passed
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