Skip to content

chore: support print full error stack in debug mode#525

Merged
9aoy merged 4 commits intomainfrom
debug-full-stack
Sep 1, 2025
Merged

chore: support print full error stack in debug mode#525
9aoy merged 4 commits intomainfrom
debug-full-stack

Conversation

@9aoy
Copy link
Copy Markdown
Collaborator

@9aoy 9aoy commented Aug 29, 2025

Summary

Rstest will ignore some stack traces that are not related to the user's source code, such as webpack/runtime and @rstest/core by default.

Support printing the full error stack in debug mode, making the stack trace more verbose and easier to analyze.

Related Links

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

Copilot AI review requested due to automatic review settings August 29, 2025 10:07
@netlify
Copy link
Copy Markdown

netlify bot commented Aug 29, 2025

Deploy Preview for rstest-dev ready!

Name Link
🔨 Latest commit 27708a8
🔍 Latest deploy log https://app.netlify.com/projects/rstest-dev/deploys/68b19122b5dfa00008ffaf32
😎 Deploy Preview https://deploy-preview-525--rstest-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR enables full error stack traces in debug mode by defaulting the fullStack parameter to the debug mode status. This allows developers to see more verbose stack traces including previously filtered framework-specific traces when debugging.

  • Imports the isDebug utility function to check debug mode status
  • Sets fullStack parameter to default to isDebug() instead of undefined

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@9aoy 9aoy merged commit cdbd15e into main Sep 1, 2025
16 checks passed
@9aoy 9aoy deleted the debug-full-stack branch September 1, 2025 06:33
@9aoy 9aoy mentioned this pull request Sep 3, 2025
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.

2 participants