Skip to content

Commit

Permalink
Add test removed from prettier#12241
Browse files Browse the repository at this point in the history
  • Loading branch information
fisker committed Feb 7, 2022
1 parent 5f719d5 commit ed9a5a5
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
@@ -0,0 +1 @@
(@f<<T>(v: T) => void>() class {});
Expand Up @@ -49,6 +49,30 @@ exports[`3.ts [typescript] format 1`] = `
2 |"
`;
exports[`4.ts [babel-ts] format 1`] = `
====================================options=====================================
parsers: ["typescript"]
printWidth: 80
| printWidth
=====================================input======================================
(@f<<T>(v: T) => void>() class {});
=====================================output=====================================
(
@f<<T>(v: T) => void>()
class {}
);
================================================================================
`;
exports[`4.ts [typescript] format 1`] = `
"Expression expected. (1:2)
> 1 | (@f<<T>(v: T) => void>() class {});
| ^
2 |"
`;
exports[`5.tsx [babel-ts] format 1`] = `
====================================options=====================================
parsers: ["typescript"]
Expand Down
@@ -1,3 +1,3 @@
run_spec(__dirname, ["typescript"], {
errors: { typescript: ["3.ts", "5.tsx"] },
errors: { typescript: ["3.ts", "4.ts", "5.tsx"] },
});

0 comments on commit ed9a5a5

Please sign in to comment.