Skip to content

Add option to strip certain JSX attributes when transforming #117

@KL13NT

Description

@KL13NT

Description

When testing components we usually assign certain JSX attributes such as data-testid. I'd like to have an option to specify certain attributes to be stripped during the transform stage. There are babel plugins that accomplish this and can be easily integrated into this pipeline.

Suggested solution

babel-plugin-react-remove-properties can be used to configure which attributes to remove.

Alternative

No response

Additional context

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions