@@ -194,6 +194,12 @@ tester.addFixturePatternConfig('javascript/experimentalOptionalCatchBinding');
194194tester . addFixturePatternConfig ( 'javascript/for' ) ;
195195tester . addFixturePatternConfig ( 'javascript/forIn' , {
196196 ignore : [
197+ /**
198+ * Error: AST difference
199+ * ts-estree: ArrayPattern
200+ * babel: ArrayExpression
201+ */
202+ 'for-in-array' ,
197203 /**
198204 * Error: AST difference
199205 * ts-estree: AssignmentExpression
@@ -213,7 +219,16 @@ tester.addFixturePatternConfig('javascript/forIn', {
213219 ]
214220} ) ;
215221
216- tester . addFixturePatternConfig ( 'javascript/forOf' ) ;
222+ tester . addFixturePatternConfig ( 'javascript/forOf' , {
223+ ignore : [
224+ /**
225+ * Error: AST difference
226+ * ts-estree: ArrayPattern
227+ * babel: ArrayExpression
228+ */
229+ 'for-of-array'
230+ ]
231+ } ) ;
217232tester . addFixturePatternConfig ( 'javascript/generators' ) ;
218233tester . addFixturePatternConfig ( 'javascript/globalReturn' ) ;
219234tester . addFixturePatternConfig ( 'javascript/importMeta' ) ;
@@ -336,6 +351,15 @@ tester.addFixturePatternConfig('typescript/basics', {
336351 'class-with-implements-generic' ,
337352 'class-with-implements' ,
338353 'class-with-extends-and-implements' ,
354+ /**
355+ * Babel error: parameterName is not included into range of TSTypeAnnotation
356+ * TODO: report it to babel
357+ */
358+ 'type-guard-in-method' ,
359+ /**
360+ * there is difference in range between babel and ts-estree
361+ */
362+ 'export-declare-const-named-enum' ,
339363 /**
340364 * Other major AST differences (e.g. fundamentally different node types)
341365 */
@@ -349,10 +373,18 @@ tester.addFixturePatternConfig('typescript/basics', {
349373 'interface-with-jsdoc' ,
350374 'interface-with-optional-properties' ,
351375 'interface-without-type-annotation' ,
376+ 'interface-with-method' ,
377+ 'type-guard-in-interface' ,
378+ 'typed-method-signature' ,
352379 'typed-this' ,
380+ /**
381+ * Babel bug for parsing exported abstract interface
382+ * https://github.com/babel/babel/issues/9304
383+ */
353384 'abstract-interface' ,
354385 /**
355- * Babel bug for optional or abstract methods?
386+ * Babel bug for optional or abstract methods
387+ * https://github.com/babel/babel/issues/9305
356388 */
357389 'abstract-class-with-abstract-method' , // babel parse errors
358390 'abstract-class-with-optional-method' , // babel parse errors
@@ -366,8 +398,8 @@ tester.addFixturePatternConfig('typescript/basics', {
366398 'class-with-public-parameter-properties' ,
367399 'class-with-readonly-parameter-properties' ,
368400 /**
369- * Not yet supported in Babel https://github.com/babel/babel/issues/7749
370- * WIP PR is https://github.com/ babel/babel/pull/8798
401+ * PR for type import has been merged into Babel: https://github.com/babel/babel/pull/9302
402+ * TODO: remove me in next babel > 7.2.3
371403 */
372404 'import-type' ,
373405 'import-type-with-type-parameters-in-type-reference' ,
@@ -444,7 +476,10 @@ tester.addFixturePatternConfig('typescript/types', {
444476 * AST difference
445477 */
446478 'function-with-rest' ,
447- 'constructor-with-rest'
479+ 'constructor-with-rest' ,
480+ 'index-signature' ,
481+ 'index-signature-readonly' ,
482+ 'literal-number-negative'
448483 ]
449484} ) ;
450485
0 commit comments