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

Don't render hook steps with no content #361

Merged
merged 2 commits into from
Jan 22, 2025
Merged

Don't render hook steps with no content #361

merged 2 commits into from
Jan 22, 2025

Conversation

davidjgoss
Copy link
Contributor

🤔 What's changed?

Prevents empty list items that add unnecessary spacing for successful hooks with no attachments.

This is a slightly hokey solution, but the issue will become moot in cucumber/html-formatter#283 anyway.

⚡️ What's your motivation?

Fixes #360.

🏷️ What kind of change is this?

  • 🐛 Bug fix (non-breaking change which fixes a defect)

📋 Checklist:

  • I agree to respect and uphold the Cucumber Community Code of Conduct
  • I've changed the behaviour of the code
    • I have added/updated tests to cover my changes.
  • My change requires a change to the documentation.
    • I have updated the documentation accordingly.
  • Users should know about my change
    • I have added an entry to the "Unreleased" section of the CHANGELOG, linking to this pull request.

This text was originally generated from a template, then edited by hand. You can modify the template here.

Copy link

netlify bot commented Jan 22, 2025

Deploy Preview for cucumber-react-preview ready!

Name Link
🔨 Latest commit 9ce92ae
🔍 Latest deploy log https://app.netlify.com/sites/cucumber-react-preview/deploys/6791348524280a0008b323be
😎 Deploy Preview https://deploy-preview-361--cucumber-react-preview.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 site configuration.

@davidjgoss davidjgoss marked this pull request as ready for review January 22, 2025 18:11
@davidjgoss davidjgoss merged commit 075a33b into main Jan 22, 2025
6 checks passed
@davidjgoss davidjgoss deleted the empty-hook-steps branch January 22, 2025 18:12
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.

HTML formatter shows extra space for hooks
1 participant