Files
test-repo/tests/integration/__tests__/__snapshots__/arg-parsing.js.snap
T
4992d97203 Deprecate jsxBracketSameLine option in favour of multi-language bracketSameLine option (#11006)
* deprecate jsxBracketSameLine in favour of multi-language angleBracketSameLine option

* update docs and snapshots

* update tests to to make them more reviewable

* Rewrite angular tests

* Rewrite html tests

* Rewrite vue tests

* Restore unnecessary changes in jsx

* Fix file location

* Test both `true` and `false`

* Revert changes in markdown

* Run tests on all js parsers

* Improve html test

* fix changelog comment

* move bracketSameLine to common options

* mark jsxBracketSameLine as deprecated

* Update changelog_unreleased/html/11006.md

Co-authored-by: fisker Cheung <lionkay@gmail.com>

* Update 11006.md

* fix tests by removing `jsxBracketSameLine` `default` property

* fix style

* Revert docs under website dir

* Add tests for deprecated options

* Fix lint problems

Co-authored-by: fisker Cheung <lionkay@gmail.com>
Co-authored-by: sosukesuzuki <aosukeke@gmail.com>
2021-08-31 11:47:50 +09:00

98 lines
2.1 KiB
Plaintext

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`allow overriding flags (stderr) 1`] = `""`;
exports[`allow overriding flags (write) 1`] = `Array []`;
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`] = `Array []`;
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`] = `Array []`;
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`] = `Array []`;
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[`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`] = `Array []`;
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`] = `Array []`;
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\\");
"
`;