Skip to content

Remove advanced usages of deprecated .contains() method

Illya Klymov requested to merge xanf-remove-contains into master

What does this MR do?

.contains will be deprecated in @vue/test-utils 1.x. This MR contains removing of this deprecated method in complex cases

See !40655 (merged) for trivial ones

This MR was mainly generated by extremely simple regexp

([^t])\.contains\(([^)]+)\) ==> $1.find($2).exists()

why [^t]? Dump way to exclude classList.contains calls. After that tiny manual intervention was performed, all described in code comments

Screenshots

N/A

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Edited by Illya Klymov

Merge request reports