Preserve comment order in test calls (#20043)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
This commit is contained in:
1 parent
0631073e47
commit
891accaaab
4 files changed
+205
No files matched your search
@@ -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,
|
||||
);
|
||||
```
|
||||
Reference in new issue
Block a user