Skip to content

feat: skip special character parsing #586

Open
@ph-fritsche

Description

@ph-fritsche

@ph-fritsche Maybe add an option to skip detection of key descriptors? Something like:

userEvent.type(input, '{"foo":"bar"}', { skipSpecialCharacters: true })

Originally posted by @lynxtaa in #584 (comment)


An alternative might be to export this workaround as a utility:

userEvent.type(input, '{"foo":"bar"}'.replace(/[{[]/g, '$&$&'))
// would become
userEvent.type(input, escapeKeyboardInput('{"foo":"bar"}'))

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions