2017-09-03 16:31:33 +03:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
2017-10-02 19:08:34 +03:00
|
|
|
exports[`show warning with unknown option (stderr) 1`] = `
|
2017-09-28 20:59:32 +03:00
|
|
|
"Ignored unknown option: hello
|
|
|
|
"
|
|
|
|
`;
|
|
|
|
|
2017-10-02 19:08:34 +03:00
|
|
|
exports[`show warning with unknown option (stdout) 1`] = `""`;
|
|
|
|
|
|
|
|
exports[`show warning with unknown option (write) 1`] = `Array []`;
|
|
|
|
|
|
|
|
exports[`throw error with invalid config format (stderr) 1`] = `
|
2017-09-06 02:52:59 +03:00
|
|
|
"Error: Invalid configuration file.
|
|
|
|
Failed to parse \\"<cwd>/tests_integration/cli/config/invalid/file/.prettierrc\\" as JSON, JS, or YAML.
|
|
|
|
"
|
|
|
|
`;
|
2017-09-03 16:31:33 +03:00
|
|
|
|
2017-10-02 19:08:34 +03:00
|
|
|
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`] = `
|
2017-09-25 22:04:25 +03:00
|
|
|
"Invalid tabWidth value.
|
|
|
|
Expected an integer, but received: 0.5"
|
2017-09-03 16:31:33 +03:00
|
|
|
`;
|
|
|
|
|
2017-10-02 19:08:34 +03:00
|
|
|
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`] = `
|
2017-09-25 22:04:25 +03:00
|
|
|
"Invalid option for trailingComma.
|
|
|
|
Expected \\"none\\", \\"es5\\" or \\"all\\", but received: \\"wow\\""
|
2017-09-03 16:31:33 +03:00
|
|
|
`;
|
|
|
|
|
2017-10-02 19:08:34 +03:00
|
|
|
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`] = `
|
2017-09-09 08:38:28 +03:00
|
|
|
"Invalid option for --config-precedence.
|
|
|
|
Expected \\"cli-override\\", \\"file-override\\" or \\"prefer-file\\", but received: \\"option/configPrecedence\\""
|
2017-09-05 01:56:23 +03:00
|
|
|
`;
|
|
|
|
|
2017-10-02 19:08:34 +03:00
|
|
|
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`] = `
|
2017-09-06 02:52:59 +03:00
|
|
|
"Error: Invalid configuration file.
|
|
|
|
EISDIR: illegal operation on a directory, read
|
|
|
|
"
|
|
|
|
`;
|
2017-10-02 19:08:34 +03:00
|
|
|
|
|
|
|
exports[`throw error with invalid config target (directory) (stdout) 1`] = `""`;
|
|
|
|
|
|
|
|
exports[`throw error with invalid config target (directory) (write) 1`] = `Array []`;
|