Skip to content

Perhaps calling invalid babel method? #2

@gioragutt

Description

@gioragutt

See code:

path.node.openingElement.attributes.push(
   // VVV
    t.jSXAttribute(t.jSXIdentifier(attrName), testId)
);

Shouldn't that be t.jsxAttribute (based on the babel docs)?

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