Skip to content

Svelte 5: Context Issue #358

Closed
Closed
@huntabyte

Description

@huntabyte

I'm not 100% sure if this issue lies with Svelte or Svelte Testing Library, but when attempting to test any component that calls getContext / setContext, the tests crash with an error.

image

I've created a simple reproduction to demonstrate this:
Reproduction StackBlitz - just run pnpm test
Reproduction Repo

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