Fix parsing jsx style element with spread attribute (#15095)
This commit is contained in:
1 parent
e15c64e712
commit
fa43afcc67
4 files changed
+16
-1
No files matched your search
@@ -20,6 +20,12 @@ exports[`should not exit non-zero for already prettified code with --debug-check
|
||||
|
||||
exports[`should not exit non-zero for already prettified code with --debug-check + --list-different (write) 1`] = `[]`;
|
||||
|
||||
exports[`should not exit non-zero for jsx style element with spread attribute (stderr) 1`] = `""`;
|
||||
|
||||
exports[`should not exit non-zero for jsx style element with spread attribute (stdout) 1`] = `"issue-15094.jsx"`;
|
||||
|
||||
exports[`should not exit non-zero for jsx style element with spread attribute (write) 1`] = `[]`;
|
||||
|
||||
exports[`show diff for 2+ error files with --debug-check (stderr) 1`] = `
|
||||
"[error] a.debug-check: prettier(input) !== prettier(prettier(input))
|
||||
[error] Index:
|
||||
|
||||
@@ -46,3 +46,9 @@ describe("should not exit non-zero for already prettified code with --debug-chec
|
||||
status: 0,
|
||||
});
|
||||
});
|
||||
|
||||
describe("should not exit non-zero for jsx style element with spread attribute", () => {
|
||||
runCli("cli/debug-check", ["issue-15094.jsx", "--debug-check"]).test({
|
||||
status: 0,
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1 @@
|
||||
<style {...a}/>;
|
||||
Reference in new issue
Block a user