Commit Graph

7 Commits

Author SHA1 Message Date
Natasha Gorshunova b24731572f fix: fix formatter bugs (#2552)
This PR is created on top of PR #2519 and addresses two formatter bugs
discovered during review:

ConsoleFormatter bug: When a console log has an empty message text but
contains arguments, the formatter correctly shifts the first argument
out of the arguments list to serve as the message text. However, it
never sets the text field to this shifted argument, causing the first
argument to be completely lost in the output.

IssueFormatter bug: When a concise issue has no description, the
formatting helper prints the literal string "undefined" instead of
falling back to "Unknown Issue".

Closes #2519

---------

Co-authored-by: ZayanKhan-12 <khanzayan200@gmail.com>
2026-08-11 13:08:45 +00:00
Alex Rudenko 9c3542bd74 refactor: move and rename files (#2355)
- move utilities to sub-folders where applicable
- changes issue-descriptions to issuesDescriptions.ts and moves it to
devtools/
2026-07-13 10:58:14 +00:00
Alex Rudenko f8fb2a9236 test: drop node20 code in tests (#2146) 2026-05-27 11:12:22 +00:00
Alex Rudenko 9ef4479bec refactor: types for JSON output of IssueFormatter (#1007)
- makes the id required in types
- requires toString(), toStringDetailed() to use the JSON
representation.
2026-02-23 08:03:09 +00:00
Alex Rudenko c9691c6250 test: fix missing sinon.restore (#989) 2026-02-18 15:39:30 +00:00
Alex Rudenko b0d041a0b2 chore: structured content for console (#804) 2026-01-22 06:53:03 +00:00
Alex Rudenko c29d097b92 chore: extract issue formatter in preparation to structured content (#794)
This makes it easier to add JSON-format as the output for issues.
Console formatter will be changed next.
2026-01-20 07:03:30 +00:00