Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add output limit #94

Merged
merged 2 commits into from
Apr 22, 2022
Merged

Add output limit #94

merged 2 commits into from
Apr 22, 2022

Conversation

yannbf
Copy link
Member

@yannbf yannbf commented Apr 21, 2022

Issue: #48

By default, the test runner will truncate error output at 1000 characters, and you can check the full output directly in Storybook, in the browser. If you do want to change that limit, however, you can do so by setting the DEBUG_PRINT_LIMIT environment variable to a number of your choosing, for example, DEBUG_PRINT_LIMIT=5000 yarn test-storybook.

Debatable:
1 - Default limit. Currently 1000
2 - Env var name. Currently the same as the one used by testing library, DEBUG_PRINT_LIMIT

📦 Published PR as canary version: 0.0.7-canary.94.a4889a0.0

✨ Test out this PR locally via:

npm install @storybook/[email protected]
# or 
yarn add @storybook/[email protected]

@yannbf yannbf added the patch Increment the patch version when merged label Apr 21, 2022
Copy link
Member

@shilman shilman left a comment

Choose a reason for hiding this comment

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

LGTM!!! 💯

@yannbf yannbf merged commit 902b803 into next Apr 22, 2022
@yannbf yannbf mentioned this pull request Apr 22, 2022
@yannbf yannbf deleted the feat/output-limit branch November 18, 2022 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch Increment the patch version when merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants