Skip to content

test: marked.test.ts asserts exact HTML output instead of semantic behavior #1223

@SHUBHANSHU602

Description

@SHUBHANSHU602

marked.test.ts asserts full HTML strings using toEqual, including whitespace and formatting:

Image

Problem:

HTML output from marked + highlight.js is not a stable API
Minor dependency upgrades can change formatting without breaking functionality
Tests fail on representation differences rather than logical regressions

File:-src/helpers/tests/marked.test.ts

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions