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]>
75 lines
1.6 KiB
Plaintext
75 lines
1.6 KiB
Plaintext
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
|
|
|
|
exports[`accepts configuration from --config 1`] = `
|
|
{
|
|
"stderr": "",
|
|
"stdout": "function js() {
|
|
console.log("js/file.js should have tab width 8 (1 if CLI)")
|
|
}",
|
|
"write": [],
|
|
}
|
|
`;
|
|
|
|
exports[`prints error message when no file found with --find-config-path 1`] = `
|
|
{
|
|
"stderr": "[error] Can not find configure file for "../--non-exits-filename--".",
|
|
"write": [],
|
|
}
|
|
`;
|
|
|
|
exports[`resolves configuration file with --find-config-path file 1`] = `
|
|
{
|
|
"stderr": "",
|
|
"stdout": ".prettierrc",
|
|
"write": [],
|
|
}
|
|
`;
|
|
|
|
exports[`resolves external configuration from package.json (cjs package) 1`] = `
|
|
{
|
|
"stdout": "console.log("should have no semi")",
|
|
}
|
|
`;
|
|
|
|
exports[`resolves external configuration from package.json (esm file) 1`] = `
|
|
{
|
|
"stdout": "console.log("should have no semi")",
|
|
}
|
|
`;
|
|
|
|
exports[`resolves external configuration from package.json (esm package with TLA) 1`] = `
|
|
{
|
|
"stdout": "console.log("should have no semi")",
|
|
}
|
|
`;
|
|
|
|
exports[`resolves external configuration from package.json (esm package) 1`] = `
|
|
{
|
|
"stdout": "console.log("should have no semi")",
|
|
}
|
|
`;
|
|
|
|
exports[`resolves json configuration file with --find-config-path file 1`] = `
|
|
{
|
|
"stderr": "",
|
|
"stdout": "rc-json/.prettierrc.json",
|
|
"write": [],
|
|
}
|
|
`;
|
|
|
|
exports[`resolves toml configuration file with --find-config-path file 1`] = `
|
|
{
|
|
"stderr": "",
|
|
"stdout": "rc-toml/.prettierrc.toml",
|
|
"write": [],
|
|
}
|
|
`;
|
|
|
|
exports[`resolves yaml configuration file with --find-config-path file 1`] = `
|
|
{
|
|
"stderr": "",
|
|
"stdout": "rc-yaml/.prettierrc.yaml",
|
|
"write": [],
|
|
}
|
|
`;
|