bad-test-classnames.sh 371 B

12345678910
  1. #!/usr/bin/env bash
  2. # the quote craziness in the regex is simply to get ['"]
  3. find packages*/__tests__/src -type f -not -name '*Wrapper.*' -not -name '*.tsx' -print0 | xargs -0 \
  4. grep --color=auto -E 'fc\-'
  5. # to search for ALL selectors...
  6. # '(\$|find|querySelector|querySelectorAll)\(['"'"'"]'
  7. # afterwards, manually search for '.fc' (making regex was too hard)