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

Commit 188ff24

Browse files
committed
test: enable additioanl tests
1 parent a03c4ab commit 188ff24

File tree

1 file changed

+5
-23
lines changed

1 file changed

+5
-23
lines changed

tests/ast-alignment/fixtures-to-test.ts

Lines changed: 5 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,6 @@ const jsxFilesWithKnownIssues = jsxKnownIssues.map(f => f.replace('jsx/', ''));
9898
*/
9999
jsxFilesWithKnownIssues.push('invalid-no-tag-name');
100100

101-
/**
102-
*/
103-
104101
/**
105102
* An class with FixturePatternConfigs
106103
*/
@@ -126,7 +123,7 @@ tester.addFixturePatternConfig('javascript/templateStrings', {
126123
tester.addFixturePatternConfig('javascript/experimentalObjectRestSpread', {
127124
ignore: [
128125
/**
129-
* Trailing comma is not permitted after a "RestElement" in Babylon
126+
* Trailing comma is not permitted after a "RestElement" in Babel
130127
*/
131128
'invalid-rest-trailing-comma'
132129
]
@@ -140,7 +137,6 @@ tester.addFixturePatternConfig('javascript/arrowFunctions', {
140137
* does not actually error on them and will produce an AST.
141138
*/
142139
'error-dup-params', // babel parse errors
143-
'error-dup-params', // babel parse errors
144140
'error-strict-dup-params', // babel parse errors
145141
'error-strict-octal', // babel parse errors
146142
'error-two-lines' // babel parse errors
@@ -221,17 +217,9 @@ tester.addFixturePatternConfig('javascript/modules', {
221217
*/
222218
'invalid-export-named-default', // babel parse errors
223219
'invalid-import-default-module-specifier', // babel parse errors
224-
'invalid-import-module-specifier', // babel parse errors
225-
/**
226-
* Deleting local variable in strict mode
227-
*/
228-
'error-delete', // babel parse errors
229-
/**
230-
* 'with' in strict mode
231-
*/
232-
'error-strict' // babel parse errors
220+
'invalid-import-module-specifier' // babel parse errors
233221
],
234-
ignoreSourceType: ['error-function']
222+
ignoreSourceType: ['error-function', 'error-strict', 'error-delete']
235223
});
236224

237225
tester.addFixturePatternConfig('javascript/newTarget', {
@@ -296,13 +284,7 @@ tester.addFixturePatternConfig('jsx-useJSXTextNode');
296284
*/
297285

298286
tester.addFixturePatternConfig('tsx', {
299-
fileType: 'tsx',
300-
ignore: [
301-
/**
302-
* currently babylon not supported
303-
*/
304-
'generic-jsx-element'
305-
]
287+
fileType: 'tsx'
306288
});
307289

308290
/* ================================================== */
@@ -323,11 +305,11 @@ tester.addFixturePatternConfig('typescript/basics', {
323305
*/
324306
'abstract-class-with-abstract-constructor', // babel parse errors
325307
'class-with-export-parameter-properties', // babel parse errors
308+
'class-with-implements-and-extends', // babel parse errors
326309
'class-with-optional-methods', // babel parse errors
327310
'class-with-static-parameter-properties', // babel parse errors
328311
'interface-with-all-property-types', // babel parse errors
329312
'interface-with-construct-signature-with-parameter-accessibility', // babel parse errors
330-
'class-with-implements-and-extends', // babel parse errors
331313
/**
332314
* typescript-estree erroring, but babylon not.
333315
*/

0 commit comments

Comments
 (0)