From 188ff2409f039e87cb5572f1ed375f5a5b2b96b4 Mon Sep 17 00:00:00 2001 From: Armano Date: Sat, 22 Dec 2018 06:35:28 +0100 Subject: [PATCH] test: enable additioanl tests --- tests/ast-alignment/fixtures-to-test.ts | 28 +++++-------------------- 1 file changed, 5 insertions(+), 23 deletions(-) diff --git a/tests/ast-alignment/fixtures-to-test.ts b/tests/ast-alignment/fixtures-to-test.ts index 0e16220..757fed0 100644 --- a/tests/ast-alignment/fixtures-to-test.ts +++ b/tests/ast-alignment/fixtures-to-test.ts @@ -98,9 +98,6 @@ const jsxFilesWithKnownIssues = jsxKnownIssues.map(f => f.replace('jsx/', '')); */ jsxFilesWithKnownIssues.push('invalid-no-tag-name'); -/** - */ - /** * An class with FixturePatternConfigs */ @@ -126,7 +123,7 @@ tester.addFixturePatternConfig('javascript/templateStrings', { tester.addFixturePatternConfig('javascript/experimentalObjectRestSpread', { ignore: [ /** - * Trailing comma is not permitted after a "RestElement" in Babylon + * Trailing comma is not permitted after a "RestElement" in Babel */ 'invalid-rest-trailing-comma' ] @@ -140,7 +137,6 @@ tester.addFixturePatternConfig('javascript/arrowFunctions', { * does not actually error on them and will produce an AST. */ 'error-dup-params', // babel parse errors - 'error-dup-params', // babel parse errors 'error-strict-dup-params', // babel parse errors 'error-strict-octal', // babel parse errors 'error-two-lines' // babel parse errors @@ -221,17 +217,9 @@ tester.addFixturePatternConfig('javascript/modules', { */ 'invalid-export-named-default', // babel parse errors 'invalid-import-default-module-specifier', // babel parse errors - 'invalid-import-module-specifier', // babel parse errors - /** - * Deleting local variable in strict mode - */ - 'error-delete', // babel parse errors - /** - * 'with' in strict mode - */ - 'error-strict' // babel parse errors + 'invalid-import-module-specifier' // babel parse errors ], - ignoreSourceType: ['error-function'] + ignoreSourceType: ['error-function', 'error-strict', 'error-delete'] }); tester.addFixturePatternConfig('javascript/newTarget', { @@ -296,13 +284,7 @@ tester.addFixturePatternConfig('jsx-useJSXTextNode'); */ tester.addFixturePatternConfig('tsx', { - fileType: 'tsx', - ignore: [ - /** - * currently babylon not supported - */ - 'generic-jsx-element' - ] + fileType: 'tsx' }); /* ================================================== */ @@ -323,11 +305,11 @@ tester.addFixturePatternConfig('typescript/basics', { */ 'abstract-class-with-abstract-constructor', // babel parse errors 'class-with-export-parameter-properties', // babel parse errors + 'class-with-implements-and-extends', // babel parse errors 'class-with-optional-methods', // babel parse errors 'class-with-static-parameter-properties', // babel parse errors 'interface-with-all-property-types', // babel parse errors 'interface-with-construct-signature-with-parameter-accessibility', // babel parse errors - 'class-with-implements-and-extends', // babel parse errors /** * typescript-estree erroring, but babylon not. */