Files
test-repo/tests_integration/__tests__/__snapshots__/piped-output.js.snap
T
Anders Kaseorg bd679a7625 Bump loglevel of issues reported by --check to warn (#8703)
When prettier --check is run by a script that combines the output from
dozens of separate linters, any progress output like “Checking
formatting...” and “All matched files use Prettier code style!” is
just noise that makes it harder to see whether there are real
errors. Bump the loglevel of issues reported by --check from log to
warn so that the noise can be selectively silenced with
--loglevel=warn.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2020-07-14 22:13:51 +08:00

110 lines
2.8 KiB
Plaintext

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`no file diffs with --check + formatted file (stderr) 1`] = `""`;
exports[`no file diffs with --check + formatted file (stderr) 2`] = `""`;
exports[`no file diffs with --check + formatted file (stdout) 1`] = `
"Checking formatting...
formatted.jsAll matched files use Prettier code style!
"
`;
exports[`no file diffs with --check + formatted file (stdout) 2`] = `
"Checking formatting...
All matched files use Prettier code style!
"
`;
exports[`no file diffs with --check + formatted file (write) 1`] = `Array []`;
exports[`no file diffs with --check + formatted file (write) 2`] = `Array []`;
exports[`no file diffs with --list-different + formatted file (stderr) 1`] = `""`;
exports[`no file diffs with --list-different + formatted file (stderr) 2`] = `""`;
exports[`no file diffs with --list-different + formatted file (stdout) 1`] = `"formatted.js"`;
exports[`no file diffs with --list-different + formatted file (stdout) 2`] = `""`;
exports[`no file diffs with --list-different + formatted file (write) 1`] = `Array []`;
exports[`no file diffs with --list-different + formatted file (write) 2`] = `Array []`;
exports[`output with --check + unformatted differs when piped (stderr) 1`] = `
"[warn] unformatted.js
[warn] Code style issues fixed in the above file(s).
"
`;
exports[`output with --check + unformatted differs when piped (stderr) 2`] = `
"[warn] unformatted.js
[warn] Code style issues fixed in the above file(s).
"
`;
exports[`output with --check + unformatted differs when piped (stdout) 1`] = `
"Checking formatting...
unformatted.js"
`;
exports[`output with --check + unformatted differs when piped (stdout) 2`] = `
"Checking formatting...
"
`;
exports[`output with --check + unformatted differs when piped (write) 1`] = `
Array [
Object {
"content": "var x = 1;
",
"filename": "unformatted.js",
},
]
`;
exports[`output with --check + unformatted differs when piped (write) 2`] = `
Array [
Object {
"content": "var x = 1;
",
"filename": "unformatted.js",
},
]
`;
exports[`output with --list-different + unformatted differs when piped (stderr) 1`] = `""`;
exports[`output with --list-different + unformatted differs when piped (stderr) 2`] = `""`;
exports[`output with --list-different + unformatted differs when piped (stdout) 1`] = `
"unformatted.jsunformatted.js
"
`;
exports[`output with --list-different + unformatted differs when piped (stdout) 2`] = `
"unformatted.js
"
`;
exports[`output with --list-different + unformatted differs when piped (write) 1`] = `
Array [
Object {
"content": "var x = 1;
",
"filename": "unformatted.js",
},
]
`;
exports[`output with --list-different + unformatted differs when piped (write) 2`] = `
Array [
Object {
"content": "var x = 1;
",
"filename": "unformatted.js",
},
]
`;