Skip to content

Change to function head breaks ssr snapshots #17058

@jurijzahn8019

Description

@jurijzahn8019

Describe the bug

Hi, the change from here

https://github.com/sveltejs/svelte/pull/17052/files#diff-e8cd30cfb0931b1ce87fcfc5d783f30effd1334222b69437f33e32eccbf48faaR74

introduced in

#17052

breaks ssr snapshots.

It would be cool if we could introduce a compiler option to make hashes in test environment stable in a similar way to cssHash option.

Reproduction

create serverside rendered app.
and snapshot ssr rendered result

Logs

System Info

vitest@3 svelte v5.42.3

Severity

annoyance

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