Skip to content

Commit 75afc65

Browse files
committed
Regenerate snapshots
1 parent 0eeed5f commit 75afc65

19 files changed

Lines changed: 301 additions & 607 deletions

test/__tests__/__snapshots__/arg-parsing.js.snap

Lines changed: 14 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,6 @@ exports[`boolean flags do not swallow the next argument 1`] = `
1515
}
1616
`;
1717

18-
exports[`deprecated option values are warned 1`] = `
19-
{
20-
"stderr": "[warn] --jsx-bracket-same-line is deprecated.",
21-
"stdout": "console.log("could be single quote and without semi");",
22-
"write": [],
23-
}
24-
`;
25-
2618
exports[`negated options work 1`] = `
2719
{
2820
"stderr": "",
@@ -64,39 +56,31 @@ exports[`number file/dir 5`] = `
6456
}
6557
`;
6658

67-
exports[`options with \`cliName\` should not allow to pass directly 1`] = `
59+
exports[`unknown negated options are errored 1`] = `
6860
{
69-
"stdout": "prettier();",
70-
}
71-
`;
72-
73-
exports[`options with \`cliName\` should not allow to pass directly 2`] = `
74-
{
75-
"stderr": "[warn] Ignored unknown option --filepath=file.js.
76-
[error] No parser and no file path given, couldn't infer a parser.",
61+
"stderr": "
62+
Unknown option: "unknown"
63+
",
7764
"stdout": "",
78-
}
79-
`;
80-
81-
exports[`unknown negated options are warned 1`] = `
82-
{
83-
"stderr": "[warn] Ignored unknown option --no-unknown.",
84-
"stdout": "console.log("could be single quote and without semi");",
8565
"write": [],
8666
}
8767
`;
8868

89-
exports[`unknown options are warned 1`] = `
69+
exports[`unknown options are errored 1`] = `
9070
{
91-
"stderr": "[warn] Ignored unknown option --unknown.",
92-
"stdout": "console.log("could be single quote and without semi");",
71+
"stderr": "
72+
Unknown option: "unknown"
73+
",
74+
"stdout": "",
9375
"write": [],
9476
}
9577
`;
9678

97-
exports[`unknown options not suggestion \`_\` 1`] = `
79+
exports[`unknown options may trigger a suggestion \`_\` 1`] = `
9880
{
99-
"stderr": "[warn] Ignored unknown option -a. Did you mean -c?",
100-
"stdout": "console.log("could be single quote and without semi");",
81+
"stderr": "
82+
Unknown option: "a". Did you mean "v"?
83+
",
84+
"stdout": "",
10185
}
10286
`;

test/__tests__/__snapshots__/check.js.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ exports[`--checks should print the number of files that need formatting 1`] = `
1313
exports[`--checks works in CI just as in a non-TTY mode 1`] = `
1414
{
1515
"stderr": "[warn] unformatted.js
16-
[warn] Code style issues found in the above file. Run Prettier with --write to fix.",
16+
[warn] Code style issues found in 1 file. Run Prettier with --write to fix.",
1717
"stdout": "Checking formatting...",
1818
"write": [],
1919
}
@@ -22,7 +22,7 @@ exports[`--checks works in CI just as in a non-TTY mode 1`] = `
2222
exports[`--checks works in CI just as in a non-TTY mode 2`] = `
2323
{
2424
"stderr": "[warn] unformatted.js
25-
[warn] Code style issues found in the above file. Run Prettier with --write to fix.",
25+
[warn] Code style issues found in 1 file. Run Prettier with --write to fix.",
2626
"stdout": "Checking formatting...",
2727
"write": [],
2828
}

0 commit comments

Comments
 (0)