fix(playground): show script errors in the response pane and fix path.resolve for relative paths - #68
Merged
arpit-bruno merged 2 commits intoSep 4, 2026
Conversation
arpit-bruno
approved these changes
Sep 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Jira: BRU-3838
Description
When a post-response or tests script failed in the docs playground, the error was only written to the browser console. The response showed 200 OK and the Tests tab said "No tests or assertions were run", so the reader had no way to know the script had failed. The Bruno app shows these errors in the response pane.
Separately,
path.resolvewith relative arguments threw'process' is not definedin the playground sandbox.Solution
Post-response and tests script errors are now shown the same way as in the Bruno app: a dismissable error card in the Response and Tests tabs, and a failed "Test Script Error" or "Post-Response Script Error" row in the test results. Tests that passed before the script failed are kept. Pre-request script errors use the same "Pre-Request Script Error" title.
path.resolveandpath.relativenow treat/as the working directory, so relative arguments resolve instead of throwing.