Skip to content

Svelte bind not working #29

Closed
Closed
@mvolkmann

Description

@mvolkmann

It seems that in the context of a test the bind here does not get processed:

<input data-testid="my-input" bind:value={myVar} />

I do this in a test:

const input = getByTestId('my-input');
fireEvent.change(input, {target: {value: 'some text'}});

The input value gets changed, but the variable myVar does not.

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