2017-03-19 05:35:09 +03:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
2017-03-22 03:38:28 +03:00
|
|
|
exports[`binaryish.js 1`] = `
|
2017-04-12 23:41:51 +03:00
|
|
|
function f() {
|
2017-03-19 05:35:09 +03:00
|
|
|
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(
|
2017-04-12 23:41:51 +03:00
|
|
|
'No tests found related to files changed since last commit.\\n',
|
2017-03-19 05:35:09 +03:00
|
|
|
) +
|
|
|
|
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))) &&
|
2017-04-12 23:41:51 +03:00
|
|
|
FUNCTIONS[property.node.name](expr.get("arguments"))
|
2017-03-19 05:35:09 +03:00
|
|
|
);
|
|
|
|
|
|
|
|
return (
|
2017-04-12 23:41:51 +03:00
|
|
|
chalk.bold("No tests found related to files changed since last commit.\\n") +
|
2017-03-19 05:35:09 +03:00
|
|
|
chalk.dim(
|
|
|
|
patternInfo.watch
|
2017-04-12 23:41:51 +03:00
|
|
|
? "Press \`a\` to run all tests, or run Jest with \`--watchAll\`."
|
|
|
|
: "Run Jest without \`-o\` to run all tests."
|
2017-03-19 05:35:09 +03:00
|
|
|
)
|
|
|
|
);
|
|
|
|
|
|
|
|
return (
|
|
|
|
!filePath.includes(coverageDirectory) &&
|
|
|
|
!filePath.endsWith(\`.\${SNAPSHOT_EXTENSION}\`)
|
|
|
|
);
|
|
|
|
}
|
2017-04-12 23:41:51 +03:00
|
|
|
|
2017-03-19 05:35:09 +03:00
|
|
|
`;
|
2017-04-10 20:46:25 +03:00
|
|
|
|
|
|
|
exports[`comment.js 1`] = `
|
2017-04-12 23:41:51 +03:00
|
|
|
function f() {
|
2017-04-10 20:46:25 +03:00
|
|
|
return /* a */;
|
|
|
|
}
|
2018-01-31 20:00:29 +03:00
|
|
|
|
|
|
|
function x() {
|
|
|
|
return func2
|
|
|
|
//comment
|
|
|
|
.bar();
|
|
|
|
}
|
|
|
|
|
|
|
|
function f() {
|
|
|
|
return (
|
|
|
|
foo
|
|
|
|
// comment
|
|
|
|
.bar()
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
fn(function f() {
|
|
|
|
return (
|
|
|
|
foo
|
|
|
|
// comment
|
|
|
|
.bar()
|
|
|
|
);
|
|
|
|
});
|
2017-04-10 20:46:25 +03:00
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
function f() {
|
|
|
|
return /* a */;
|
|
|
|
}
|
2017-04-12 23:41:51 +03:00
|
|
|
|
2018-01-31 20:00:29 +03:00
|
|
|
function x() {
|
|
|
|
return (
|
|
|
|
func2
|
|
|
|
//comment
|
|
|
|
.bar()
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
function f() {
|
|
|
|
return (
|
|
|
|
foo
|
|
|
|
// comment
|
|
|
|
.bar()
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
fn(function f() {
|
|
|
|
return (
|
|
|
|
foo
|
|
|
|
// comment
|
|
|
|
.bar()
|
|
|
|
);
|
|
|
|
});
|
|
|
|
|
2017-04-10 20:46:25 +03:00
|
|
|
`;
|