124 lines
2.8 KiB
Plaintext
124 lines
2.8 KiB
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`binaryish.js 1`] = `
|
|
====================================options=====================================
|
|
parsers: ["flow", "typescript"]
|
|
printWidth: 80
|
|
| printWidth
|
|
=====================================input======================================
|
|
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}\`);
|
|
}
|
|
|
|
=====================================output=====================================
|
|
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}\`)
|
|
);
|
|
}
|
|
|
|
================================================================================
|
|
`;
|
|
|
|
exports[`comment.js 1`] = `
|
|
====================================options=====================================
|
|
parsers: ["flow", "typescript"]
|
|
printWidth: 80
|
|
| printWidth
|
|
=====================================input======================================
|
|
function f() {
|
|
return /* a */;
|
|
}
|
|
|
|
function x() {
|
|
return func2
|
|
//comment
|
|
.bar();
|
|
}
|
|
|
|
function f() {
|
|
return (
|
|
foo
|
|
// comment
|
|
.bar()
|
|
);
|
|
}
|
|
|
|
fn(function f() {
|
|
return (
|
|
foo
|
|
// comment
|
|
.bar()
|
|
);
|
|
});
|
|
|
|
=====================================output=====================================
|
|
function f() {
|
|
return /* a */;
|
|
}
|
|
|
|
function x() {
|
|
return (
|
|
func2
|
|
//comment
|
|
.bar()
|
|
);
|
|
}
|
|
|
|
function f() {
|
|
return (
|
|
foo
|
|
// comment
|
|
.bar()
|
|
);
|
|
}
|
|
|
|
fn(function f() {
|
|
return (
|
|
foo
|
|
// comment
|
|
.bar()
|
|
);
|
|
});
|
|
|
|
================================================================================
|
|
`;
|