2017-03-19 05:35:09 +03:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
2017-03-22 00:47:23 +03:00
|
|
|
exports[`binaryish.js-flow 1`] = `
|
2017-03-19 05:35:09 +03:00
|
|
|
"function f() {
|
|
|
|
return (
|
|
|
|
property.isIdentifier() &&
|
|
|
|
FUNCTIONS[property.node.name] &&
|
|
|
|
(object.isIdentifier(JEST_GLOBAL) ||
|
|
|
|
(callee.isMemberExpression() && shouldHoistExpression(object))) &&
|
|
|
|
FUNCTIONS[property.node.name](expr.get('arguments'))
|
|
|
|
);
|
|
|
|
|
|
|
|
return (
|
|
|
|
chalk.bold(
|
|
|
|
'No tests found related to files changed since last commit.\\\\n',
|
|
|
|
) +
|
|
|
|
chalk.dim(
|
|
|
|
patternInfo.watch ?
|
|
|
|
'Press \`a\` to run all tests, or run Jest with \`--watchAll\`.' :
|
|
|
|
'Run Jest without \`-o\` to run all tests.',
|
|
|
|
)
|
|
|
|
);
|
|
|
|
|
|
|
|
return !filePath.includes(coverageDirectory) &&
|
|
|
|
!filePath.endsWith(\`.\${SNAPSHOT_EXTENSION}\`);
|
|
|
|
}
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
function f() {
|
|
|
|
return (
|
|
|
|
property.isIdentifier() &&
|
|
|
|
FUNCTIONS[property.node.name] &&
|
|
|
|
(object.isIdentifier(JEST_GLOBAL) ||
|
|
|
|
(callee.isMemberExpression() && shouldHoistExpression(object))) &&
|
|
|
|
FUNCTIONS[property.node.name](expr.get(\\"arguments\\"))
|
|
|
|
);
|
|
|
|
|
|
|
|
return (
|
|
|
|
chalk.bold(\\"No tests found related to files changed since last commit.\\\\n\\") +
|
|
|
|
chalk.dim(
|
|
|
|
patternInfo.watch
|
|
|
|
? \\"Press \`a\` to run all tests, or run Jest with \`--watchAll\`.\\"
|
|
|
|
: \\"Run Jest without \`-o\` to run all tests.\\"
|
|
|
|
)
|
|
|
|
);
|
|
|
|
|
|
|
|
return (
|
|
|
|
!filePath.includes(coverageDirectory) &&
|
|
|
|
!filePath.endsWith(\`.\${SNAPSHOT_EXTENSION}\`)
|
|
|
|
);
|
|
|
|
}
|
|
|
|
"
|
|
|
|
`;
|