Files
test-repo/tests/integration/__tests__/__snapshots__/stdin-filepath.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

89 lines
1.7 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
exports[`apply editorconfig for stdin-filepath with a deep path 1`] = `
{
"stderr": "",
"stdout": "function f() {
console.log("should be indented with a tab")
}",
"write": [],
}
`;
exports[`apply editorconfig for stdin-filepath with a deep path 2`] = `
{
"stderr": "",
"stdout": "function f() {
console.log("should be indented with a tab")
}",
"write": [],
}
`;
exports[`apply editorconfig for stdin-filepath with nonexistent directory 1`] = `
{
"stderr": "",
"stdout": "function f() {
console.log("should be indented with a tab")
}",
"write": [],
}
`;
exports[`apply editorconfig for stdin-filepath with nonexistent file 1`] = `
{
"stderr": "",
"stdout": "function f() {
console.log("should be indented with a tab")
}",
"write": [],
}
`;
exports[`don’t apply editorconfig outside project for stdin-filepath with nonexistent directory 1`] = `
{
"stderr": "",
"stdout": "function f() {
console.log("should be indented with 2 spaces")
}",
"write": [],
}
`;
exports[`format correctly if stdin content compatible with stdin-filepath 1`] = `
{
"stderr": "",
"stdout": ".name {
display: none;
}",
"write": [],
}
`;
exports[`gracefully handle stdin-filepath with nonexistent directory 1`] = `
{
"stderr": "",
"stdout": ".name {
display: none;
}",
"write": [],
}
`;
exports[`output file as-is if stdin-filepath matched patterns in ignore-path 1`] = `
{
"stderr": "",
"write": [],
}
`;
exports[`throw error if stdin content incompatible with stdin-filepath 1`] = `
{
"stderr": "[error] abc.js: SyntaxError: Unexpected token (1:1)
[error] > 1 | .name { display: none; }
[error] | ^",
"stdout": "",
"write": [],
}
`;