Update Yuku parser to v0.8.7 (#19833)

Co-authored-by: fisker <lionkay@gmail.com>
This commit is contained in:
renovate[bot]andfisker authored and GitHub committed 2026-08-15 10:17:29 +08:00
1 parent 560146e644
commit c3de27131e
5 files changed
+106 -73

No files matched your search

@@ -0,0 +1,31 @@
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
exports[`unparenthesized-in-union-type.ts format[babel-ts] 1`] = `
"Unexpected token (1:15)
> 1 | type A = B | () => void;
| ^
2 |
Cause: Unexpected token (1:14)"
`;
exports[`unparenthesized-in-union-type.ts format[oxc-ts] 1`] = `
"Unexpected token (1:15)
> 1 | type A = B | () => void;
| ^
2 |"
`;
exports[`unparenthesized-in-union-type.ts format[typescript] 1`] = `
"Function type notation must be parenthesized when used in a union type. (1:13)
> 1 | type A = B | () => void;
| ^
2 |
Cause: Function type notation must be parenthesized when used in a union type."
`;
exports[`unparenthesized-in-union-type.ts format[yuku-ts] 1`] = `
"Expected a type, but found ')' (1:15)
> 1 | type A = B | () => void;
| ^
2 |"
`;
@@ -0,0 +1 @@
runFormatTest(import.meta, ["typescript", "babel-ts", "oxc-ts", "yuku-ts"]);
@@ -0,0 +1 @@
type A = B | () => void;