mirror of
https://github.com/hanzoai/prettier.git
synced 2026-09-24 17:02:04 +00:00
a6bbdad8ca
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: fisker <[email protected]>
79 lines
1.9 KiB
Plaintext
79 lines
1.9 KiB
Plaintext
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
|
|
|
|
exports[`CLI --stdin-filepath works with --config-precedence cli-override 1`] = `
|
|
{
|
|
"stdout": "let x: keyof Y = foo<typeof X>()",
|
|
"write": [],
|
|
}
|
|
`;
|
|
|
|
exports[`CLI --stdin-filepath works with --config-precedence file-override 1`] = `
|
|
{
|
|
"stdout": "let x: keyof Y = foo<typeof X>();",
|
|
"write": [],
|
|
}
|
|
`;
|
|
|
|
exports[`CLI --stdin-filepath works with --config-precedence prefer-file 1`] = `
|
|
{
|
|
"stdout": "let x: keyof Y = foo<typeof X>();",
|
|
"write": [],
|
|
}
|
|
`;
|
|
|
|
exports[`CLI overrides are still applied when no config is found with --config-precedence file-override 1`] = `
|
|
{
|
|
"stderr": "",
|
|
"stdout": "function noConfigJs() {
|
|
console.log("no-config/file.js should have no semicolons")
|
|
}",
|
|
"write": [],
|
|
}
|
|
`;
|
|
|
|
exports[`CLI overrides gets applied when no config exists with --config-precedence prefer-file 1`] = `
|
|
{
|
|
"stderr": "",
|
|
"stdout": "function noConfigJs() {
|
|
console.log(
|
|
"no-config/file.js should have no semicolons",
|
|
);
|
|
}",
|
|
"write": [],
|
|
}
|
|
`;
|
|
|
|
exports[`CLI overrides gets ignored when config exists with --config-precedence prefer-file 1`] = `
|
|
{
|
|
"stderr": "",
|
|
"stdout": "function js() {
|
|
console.log("js/file.js should have tab width 8 (1 if CLI)");
|
|
}",
|
|
"write": [],
|
|
}
|
|
`;
|
|
|
|
exports[`CLI validate options with --config-precedence cli-override 1`] = `
|
|
{
|
|
"stderr": "[error] Invalid printWidth value. Expected an integer, but received 0.5.",
|
|
"stdout": "",
|
|
"write": [],
|
|
}
|
|
`;
|
|
|
|
exports[`CLI validate options with --config-precedence file-override 1`] = `
|
|
{
|
|
"stderr": "[error] Invalid printWidth value. Expected an integer, but received 0.5.",
|
|
"stdout": "",
|
|
"write": [],
|
|
}
|
|
`;
|
|
|
|
exports[`CLI validate options with --config-precedence prefer-file 1`] = `
|
|
{
|
|
"stderr": "[error] Invalid printWidth value. Expected an integer, but received 0.5.",
|
|
"stdout": "",
|
|
"write": [],
|
|
}
|
|
`;
|