85 lines
2.9 KiB
Plaintext
85 lines
2.9 KiB
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[` 1`] = `
|
|
"Snapshot Diff:
|
|
- First value
|
|
+ Second value
|
|
|
|
@@ -20,18 +20,20 @@
|
|
Control how Prettier formats quoted code embedded in the file.
|
|
Defaults to auto.
|
|
--end-of-line <lf|crlf|cr|auto>
|
|
Which end of line characters to apply.
|
|
Defaults to lf.
|
|
+ --foo-option <bar|baz> foo description
|
|
+ Defaults to bar.
|
|
--html-whitespace-sensitivity <css|strict|ignore>
|
|
How to handle whitespaces in HTML.
|
|
Defaults to css.
|
|
--jsx-bracket-same-line Put > on the last line instead of at a new line.
|
|
Defaults to false.
|
|
--jsx-single-quote Use single quotes in JSX.
|
|
Defaults to false.
|
|
- --parser <flow|babel|babel-flow|babel-ts|typescript|espree|meriyah|css|less|scss|json|json5|json-stringify|graphql|markdown|mdx|vue|yaml|html|angular|lwc>
|
|
+ --parser <flow|babel|babel-flow|babel-ts|typescript|espree|meriyah|css|less|scss|json|json5|json-stringify|graphql|markdown|mdx|vue|yaml|html|angular|lwc|foo-parser>
|
|
Which parser to use.
|
|
--print-width <int> The line length where Prettier will try wrap.
|
|
Defaults to 80.
|
|
--prose-wrap <always|never|preserve>
|
|
How to wrap prose."
|
|
`;
|
|
|
|
exports[`include plugin's parsers to the values of the \`parser\` option\` (stderr) 1`] = `""`;
|
|
|
|
exports[`include plugin's parsers to the values of the \`parser\` option\` (stdout) 1`] = `
|
|
"--parser <flow|babel|babel-flow|babel-ts|typescript|espree|meriyah|css|less|scss|json|json5|json-stringify|graphql|markdown|mdx|vue|yaml|html|angular|lwc|foo-parser>
|
|
|
|
Which parser to use.
|
|
|
|
Valid options:
|
|
|
|
flow Flow
|
|
babel JavaScript
|
|
babel-flow Flow
|
|
babel-ts TypeScript
|
|
typescript TypeScript
|
|
espree JavaScript
|
|
meriyah JavaScript
|
|
css CSS
|
|
less Less
|
|
scss SCSS
|
|
json JSON
|
|
json5 JSON5
|
|
json-stringify JSON.stringify
|
|
graphql GraphQL
|
|
markdown Markdown
|
|
mdx MDX
|
|
vue Vue
|
|
yaml YAML
|
|
html HTML
|
|
angular Angular
|
|
lwc Lightning Web Components
|
|
foo-parser foo (plugin: ./plugin)
|
|
"
|
|
`;
|
|
|
|
exports[`include plugin's parsers to the values of the \`parser\` option\` (write) 1`] = `Array []`;
|
|
|
|
exports[`show detailed external option with \`--help foo-option\` (stderr) 1`] = `""`;
|
|
|
|
exports[`show detailed external option with \`--help foo-option\` (stdout) 1`] = `
|
|
"--foo-option <bar|baz>
|
|
|
|
foo description
|
|
|
|
Valid options:
|
|
|
|
bar bar description
|
|
baz baz description
|
|
|
|
Default: bar
|
|
"
|
|
`;
|
|
|
|
exports[`show detailed external option with \`--help foo-option\` (write) 1`] = `Array []`;
|