File tree 2 files changed +29
-1
lines changed
2 files changed +29
-1
lines changed Original file line number Diff line number Diff line change
1
+ /**
2
+ * @fileoverview Tests for EspreeParser.
3
+ * @author Brett Zamir
4
+ */
5
+
6
+ //------------------------------------------------------------------------------
7
+ // Requirements
8
+ //------------------------------------------------------------------------------
9
+
1
10
import assert from "assert" ;
2
11
import * as acorn from "acorn" ;
3
12
import espree from "../../lib/espree.js" ;
4
13
14
+ //------------------------------------------------------------------------------
15
+ // Tests
16
+ //------------------------------------------------------------------------------
17
+
5
18
describe ( "espree" , ( ) => {
6
- it ( "Throws upon `jsx_readString` when not using JSX" , ( ) => {
19
+ it ( "Throws upon `jsx_readString` call when not using JSX" , ( ) => {
7
20
const espreeParserFactory = espree ( ) ;
8
21
const AcornParser = acorn . Parser ;
9
22
const EspreeParser = espreeParserFactory ( /** @type {EspreeParser } */ ( AcornParser ) ) ;
Original file line number Diff line number Diff line change
1
+ /**
2
+ * @fileoverview Tool to prepare JavaScript (+JSDoc) for TypeScript, inlining
3
+ * `@local`-marked `@typedef`'s, and building a faux class for `@export`-marked
4
+ * classes so the type can be exported out of a given file.
5
+ * @author Brett Zamir
6
+ */
7
+
8
+ //------------------------------------------------------------------------------
9
+ // Requirements
10
+ //------------------------------------------------------------------------------
11
+
1
12
import js2tsAssistant from "@es-joy/js2ts-assistant" ;
2
13
14
+ // ----------------------------------------------------------------------------
15
+ // Modify output
16
+ // ----------------------------------------------------------------------------
17
+
3
18
await js2tsAssistant ( {
4
19
customClassHandling ( {
5
20
ast, builders, superClassName
You can’t perform that action at this time.
0 commit comments