mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
* improve * `yarn gulp bundle-dts` * improve --------- Co-authored-by: Nicolò Ribaudo <[email protected]>
12 lines
314 B
TypeScript
12 lines
314 B
TypeScript
import { expect, it } from "tstyche";
|
|
import type { ParseError } from "../src/index.ts";
|
|
|
|
it("errors", () => {
|
|
const e = {} as ParseError;
|
|
|
|
if (e.reasonCode === "AccessorIsGenerator") {
|
|
expect(e.code).type.toBe<"BABEL_PARSER_SYNTAX_ERROR">();
|
|
expect(e.details.kind).type.toBe<"get" | "set">();
|
|
}
|
|
});
|