Skip to content

Commit

Permalink
fix test 3 - revenge of the sith
Browse files Browse the repository at this point in the history
  • Loading branch information
bradzacher committed Aug 28, 2022
1 parent 18d8bea commit 9871126
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,14 @@ tester.addFixturePatternConfig('typescript/decorators/accessor-decorators', {
});
tester.addFixturePatternConfig('typescript/decorators/class-decorators', {
fileType: 'ts',
ignore: [
/**
* babel sets the range of the export node to the start of the decorator
* tsestree sets it to the start of the export keyword
*/
'export-default-class-decorator',
'export-named-class-decorator',
],
});
tester.addFixturePatternConfig('typescript/decorators/method-decorators', {
fileType: 'ts',
Expand Down
2 changes: 1 addition & 1 deletion packages/typescript-estree/tests/ast-fixtures.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ addSerializer(serializer);
// This is super helpful if you need to debug why a specific fixture isn't producing the correct output
// eg. ['type-declaration', 'signatures', 'method-generic.src'] will only test /type-declaration/signatures/method-generic.src.ts
// prettier-ignore
const ONLY = ['typescript', 'decorators', 'class-decorators', 'export-named-class-decorator.src'].join(path.sep);
const ONLY = [].join(path.sep);

const fixturesDir = path.resolve(
__dirname,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2224,6 +2224,10 @@ exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" e

exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/typescript/decorators/class-decorators/class-decorator-factory.src 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`;

exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/typescript/decorators/class-decorators/export-default-class-decorator.src 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`;

exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/typescript/decorators/class-decorators/export-named-class-decorator.src 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`;

exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/typescript/decorators/method-decorators/method-decorator-factory-instance-member.src 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`;

exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/typescript/decorators/method-decorators/method-decorator-factory-static-member.src 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`;
Expand Down

0 comments on commit 9871126

Please sign in to comment.