Skip to content
This repository has been archived by the owner on Jan 14, 2019. It is now read-only.

Commit

Permalink
test: enable additioanl tests
Browse files Browse the repository at this point in the history
  • Loading branch information
armano2 committed Dec 22, 2018
1 parent a03c4ab commit 188ff24
Showing 1 changed file with 5 additions and 23 deletions.
28 changes: 5 additions & 23 deletions tests/ast-alignment/fixtures-to-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,6 @@ const jsxFilesWithKnownIssues = jsxKnownIssues.map(f => f.replace('jsx/', ''));
*/
jsxFilesWithKnownIssues.push('invalid-no-tag-name');

/**
*/

/**
* An class with FixturePatternConfigs
*/
Expand All @@ -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'
]
Expand All @@ -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
Expand Down Expand Up @@ -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', {
Expand Down Expand Up @@ -296,13 +284,7 @@ tester.addFixturePatternConfig('jsx-useJSXTextNode');
*/

tester.addFixturePatternConfig('tsx', {
fileType: 'tsx',
ignore: [
/**
* currently babylon not supported
*/
'generic-jsx-element'
]
fileType: 'tsx'
});

/* ================================================== */
Expand All @@ -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.
*/
Expand Down

0 comments on commit 188ff24

Please sign in to comment.