prettier/tests_integration/__tests__/__snapshots__/config-invalid.js.snap

74 lines
2.7 KiB
Plaintext

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`show warning with kebab-case option key (stderr) 1`] = `
"[warn] Ignored unknown option { \\"print-width\\": 3 }. Did you mean printWidth?
"
`;
exports[`show warning with kebab-case option key (stdout) 1`] = `""`;
exports[`show warning with kebab-case option key (write) 1`] = `Array []`;
exports[`show warning with unknown option (stderr) 1`] = `
"[warn] Ignored unknown option { hello: \\"world\\" }.
"
`;
exports[`show warning with unknown option (stdout) 1`] = `""`;
exports[`show warning with unknown option (write) 1`] = `Array []`;
exports[`throw error for unsupported extension (stderr) 1`] = `
"[error] Invalid configuration file: No sync loader specified for extension \\".unsupported\\"
"
`;
exports[`throw error for unsupported extension (stdout) 1`] = `""`;
exports[`throw error for unsupported extension (write) 1`] = `Array []`;
exports[`throw error with invalid config format (stderr) 1`] = `
"[error] Invalid configuration file: Cannot find module '--invalid--' from '<cwd>/tests_integration/cli/config/invalid/file'
"
`;
exports[`throw error with invalid config format (stdout) 1`] = `""`;
exports[`throw error with invalid config format (write) 1`] = `Array []`;
exports[`throw error with invalid config option (int) (stderr) 1`] = `
"[error] Invalid tabWidth value. Expected an integer, but received 0.5.
"
`;
exports[`throw error with invalid config option (int) (stdout) 1`] = `""`;
exports[`throw error with invalid config option (int) (write) 1`] = `Array []`;
exports[`throw error with invalid config option (trailingComma) (stderr) 1`] = `
"[error] Invalid trailingComma value. Expected \\"all\\", \\"es5\\" or \\"none\\", but received \\"wow\\".
"
`;
exports[`throw error with invalid config option (trailingComma) (stdout) 1`] = `""`;
exports[`throw error with invalid config option (trailingComma) (write) 1`] = `Array []`;
exports[`throw error with invalid config precedence option (configPrecedence) (stderr) 1`] = `
"[error] Invalid --config-precedence value. Expected \\"cli-override\\", \\"file-override\\" or \\"prefer-file\\", but received \\"option/configPrecedence\\".
"
`;
exports[`throw error with invalid config precedence option (configPrecedence) (stdout) 1`] = `""`;
exports[`throw error with invalid config precedence option (configPrecedence) (write) 1`] = `Array []`;
exports[`throw error with invalid config target (directory) (stderr) 1`] = `
"[error] Invalid configuration file: EISDIR: illegal operation on a directory, read
"
`;
exports[`throw error with invalid config target (directory) (stdout) 1`] = `""`;
exports[`throw error with invalid config target (directory) (write) 1`] = `Array []`;