Files
test-repo/tests/integration/__tests__/__snapshots__/debug-check.js.snap
T
renovate[bot]andfisker e902eba985 Update dependency diff to v9 (#19050)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2026-04-15 08:31:02 +08:00

69 lines
1.4 KiB
Plaintext

// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
exports[`checks stdin with --debug-check 1`] = `
{
"write": [],
}
`;
exports[`doesn't crash when --debug-check is passed 1`] = `
{
"write": [],
}
`;
exports[`should not exit non-zero for already prettified code with --debug-check + --check 1`] = `
{
"stderr": "",
"stdout": "Checking formatting...
issue-4599.js
All matched files use Prettier code style!",
"write": [],
}
`;
exports[`should not exit non-zero for already prettified code with --debug-check + --list-different 1`] = `
{
"stderr": "",
"stdout": "issue-4599.js",
"write": [],
}
`;
exports[`should not exit non-zero for jsx style element with spread attribute 1`] = `
{
"stderr": "",
"stdout": "issue-15094.jsx",
"write": [],
}
`;
exports[`show diff for 2+ error files with --debug-check 1`] = `
{
"stderr": "[error] a.debug-check: prettier(input) !== prettier(prettier(input))
[error] Index:
[error] ===================================================================
[error] ---
[error] +++
[error] @@ -1,2 +1,4 @@
[error] hello
[error] hello
[error] +hello
[error] +hello
[error]
[error] b.debug-check: prettier(input) !== prettier(prettier(input))
[error] Index:
[error] ===================================================================
[error] ---
[error] +++
[error] @@ -1,2 +1,4 @@
[error] world
[error] world
[error] +world
[error] +world
[error] ",
"stdout": "",
"write": [],
}
`;