Files
test-repo/tests/integration/__tests__/__snapshots__/write.js.snap
T
renovate[bot]andfisker a6bbdad8ca chore(deps): update dependency jest to v30.1.1 (#17819)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2025-08-30 15:36:22 +08:00

46 lines
849 B
Plaintext

// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
exports[`do not write file with --write + formatted file 1`] = `
{
"stderr": "",
"stdout": "formatted.js 0ms (unchanged)",
}
`;
exports[`do not write file with --write + invalid file 1`] = `
{
"stderr": "[error] invalid.js: SyntaxError: Unexpected token (1:17)
[error] > 1 | this is invalid!
[error] | ^",
"stdout": "",
}
`;
exports[`write file with --write + unformatted file 1`] = `
{
"stderr": "",
"stdout": "unformatted.js 0ms",
"write": [
{
"content": "var x = 1;
",
"filename": "unformatted.js",
},
],
}
`;
exports[`write file with -w + unformatted file 1`] = `
{
"stderr": "",
"stdout": "unformatted.js 0ms",
"write": [
{
"content": "var x = 1;
",
"filename": "unformatted.js",
},
],
}
`;