58 lines
2.9 KiB
Plaintext
58 lines
2.9 KiB
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`resolves external configuration from package.json (stderr) 1`] = `"[error] Invalid configuration file \`syntax-error.js\`: THIS ERROR MESSAGE MUST COME FROM THIS syntax-error.js FILE"`;
|
|
|
|
exports[`resolves external configuration from package.json (stdout) 1`] = `""`;
|
|
|
|
exports[`resolves external configuration from package.json (write) 1`] = `[]`;
|
|
|
|
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`] = `[]`;
|
|
|
|
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`] = `[]`;
|
|
|
|
exports[`throw error for unsupported extension (stderr) 1`] = `"[error] Invalid configuration file \`<cwd>/tests/integration/cli/config/invalid\`: No loader specified for extension ".unsupported""`;
|
|
|
|
exports[`throw error for unsupported extension (stdout) 1`] = `""`;
|
|
|
|
exports[`throw error for unsupported extension (write) 1`] = `[]`;
|
|
|
|
exports[`throw error with invalid config format (stdout) 1`] = `""`;
|
|
|
|
exports[`throw error with invalid config format (stdout) 2`] = `""`;
|
|
|
|
exports[`throw error with invalid config format (write) 1`] = `[]`;
|
|
|
|
exports[`throw error with invalid config format (write) 2`] = `[]`;
|
|
|
|
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`] = `[]`;
|
|
|
|
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`] = `[]`;
|
|
|
|
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`] = `[]`;
|
|
|
|
exports[`throw error with invalid config target (directory) (stderr) 1`] = `"[error] Invalid configuration file \`<cwd>/tests/integration/cli/config/invalid\`: 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`] = `[]`;
|