Files
renovate[bot]GitHubrenovate[bot] <29139614+renovate[bot]@users.noreply.github.com>fisker
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 <[email protected]>
2025-08-30 15:36:22 +08:00

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": [],
}
`;