(string)
| 2 | import { parseExpression } from "@babel/parser"; |
| 3 | |
| 4 | function parseCode(string) { |
| 5 | return parseExpression(string, { |
| 6 | allowSuperOutsideMethod: true, |
| 7 | allowNewTargetOutsideFunction: true, |
| 8 | allowReturnOutsideFunction: true, |
| 9 | sourceType: "module", |
| 10 | }); |
| 11 | } |
| 12 | |
| 13 | describe("misc helpers", function () { |
| 14 | describe("matchesPattern", function () { |
no test coverage detected