binaryish.js 656 B

123456789101112131415161718192021222324
  1. function f() {
  2. return (
  3. property.isIdentifier() &&
  4. FUNCTIONS[property.node.name] &&
  5. (object.isIdentifier(JEST_GLOBAL) ||
  6. (callee.isMemberExpression() && shouldHoistExpression(object))) &&
  7. FUNCTIONS[property.node.name](expr.get('arguments'))
  8. );
  9. return (
  10. chalk.bold(
  11. 'No tests found related to files changed since last commit.\n',
  12. ) +
  13. chalk.dim(
  14. patternInfo.watch ?
  15. 'Press `a` to run all tests, or run Jest with `--watchAll`.' :
  16. 'Run Jest without `-o` to run all tests.',
  17. )
  18. );
  19. return !filePath.includes(coverageDirectory) &&
  20. !filePath.endsWith(`.${SNAPSHOT_EXTENSION}`);
  21. }