Test, validate and match regular expressions
Matches Enzyme-style simulate() calls in JavaScript/React test files where an event object containing a type and a data-test-id target is passed, e.g. simulate(click, [{type: "click", target: "[data-test-id=submit-btn]"}]). It captures the event type name and the data-test-id attribute value. Commonly used for refactoring, migrating, or extracting test selectors from React component test suites, with multiline matching to handle formatted code.