Preserve comment order in test calls (#20043)

Co-authored-by: fisker Cheung <lionkay@gmail.com>
This commit is contained in:
lllleolin-maxandfisker Cheung authored and GitHub committed 2026-09-13 04:24:41 +08:00
1 parent 0631073e47
commit 891accaaab
4 files changed
+205

No files matched your search

+30
View File
@@ -0,0 +1,30 @@
#### Preserve comment order in test calls (#20043 by @lllleolin-max)
<!-- prettier-ignore -->
```jsx
// Input
test("x", () => {
run();
}, // first
// second
// third
60000);
// Prettier stable
test("x", () => {
run();
}, // second // first
// third
60000);
// Prettier main
test(
"x",
() => {
run();
}, // first
// second
// third
60000,
);
```