111 lines
2.5 KiB
Plaintext
111 lines
2.5 KiB
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`allow overriding flags (stderr) 1`] = `""`;
|
|
|
|
exports[`allow overriding flags (write) 1`] = `[]`;
|
|
|
|
exports[`boolean flags do not swallow the next argument (stderr) 1`] = `""`;
|
|
|
|
exports[`boolean flags do not swallow the next argument (stdout) 1`] = `
|
|
"console.log('could be single quote and without semi');
|
|
"
|
|
`;
|
|
|
|
exports[`boolean flags do not swallow the next argument (write) 1`] = `[]`;
|
|
|
|
exports[`deprecated option values are warned (stderr) 1`] = `
|
|
"[warn] --jsx-bracket-same-line is deprecated.
|
|
"
|
|
`;
|
|
|
|
exports[`deprecated option values are warned (stdout) 1`] = `
|
|
"console.log("could be single quote and without semi");
|
|
"
|
|
`;
|
|
|
|
exports[`deprecated option values are warned (write) 1`] = `[]`;
|
|
|
|
exports[`negated options work (stderr) 1`] = `""`;
|
|
|
|
exports[`negated options work (stdout) 1`] = `
|
|
"console.log("could be single quote and without semi")
|
|
"
|
|
`;
|
|
|
|
exports[`negated options work (write) 1`] = `[]`;
|
|
|
|
exports[`number file/dir (stdout) 1`] = `
|
|
"1/file-in-dir-named-1.js
|
|
"
|
|
`;
|
|
|
|
exports[`number file/dir (stdout) 2`] = `
|
|
"2.2/file-in-dir-named-2.2.js
|
|
"
|
|
`;
|
|
|
|
exports[`number file/dir (stdout) 3`] = `
|
|
"3
|
|
"
|
|
`;
|
|
|
|
exports[`number file/dir (stdout) 4`] = `
|
|
"4.44
|
|
"
|
|
`;
|
|
|
|
exports[`number file/dir (stdout) 5`] = `
|
|
"1/file-in-dir-named-1.js
|
|
2.2/file-in-dir-named-2.2.js
|
|
3
|
|
4.44
|
|
"
|
|
`;
|
|
|
|
exports[`options with \`cliName\` should not allow to pass directly (stderr) 1`] = `
|
|
"[warn] Ignored unknown option --filepath=file.js.
|
|
[error] No parser and no file path given, couldn't infer a parser.
|
|
"
|
|
`;
|
|
|
|
exports[`options with \`cliName\` should not allow to pass directly (stdout) 1`] = `
|
|
"prettier();
|
|
"
|
|
`;
|
|
|
|
exports[`options with \`cliName\` should not allow to pass directly (stdout) 2`] = `""`;
|
|
|
|
exports[`unknown negated options are warned (stderr) 1`] = `
|
|
"[warn] Ignored unknown option --no-unknown.
|
|
"
|
|
`;
|
|
|
|
exports[`unknown negated options are warned (stdout) 1`] = `
|
|
"console.log("could be single quote and without semi");
|
|
"
|
|
`;
|
|
|
|
exports[`unknown negated options are warned (write) 1`] = `[]`;
|
|
|
|
exports[`unknown options are warned (stderr) 1`] = `
|
|
"[warn] Ignored unknown option --unknown.
|
|
"
|
|
`;
|
|
|
|
exports[`unknown options are warned (stdout) 1`] = `
|
|
"console.log("could be single quote and without semi");
|
|
"
|
|
`;
|
|
|
|
exports[`unknown options are warned (write) 1`] = `[]`;
|
|
|
|
exports[`unknown options not suggestion \`_\` (stderr) 1`] = `
|
|
"[warn] Ignored unknown option -a. Did you mean -c?
|
|
"
|
|
`;
|
|
|
|
exports[`unknown options not suggestion \`_\` (stdout) 1`] = `
|
|
"console.log("could be single quote and without semi");
|
|
"
|
|
`;
|