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n TSDocTagDefinition,\r\n TSDocTagSyntaxKind\r\n} from '../index';\r\nimport { TestHelpers } from '../parser/__tests__/TestHelpers';\r\n\r\ntest('01 Simple @beta and @internal extraction', () => {\r\n const parserContext: ParserContext = TestHelpers.parseAndMatchDocCommentSnapshot(\r\n ['/**', ' * START @beta', ' * @unknownTag', ' * @internal @internal END', ' */'].join('\\n')\r\n );\r\n\r\n const docComment: DocComment = parserContext.docComment;\r\n const modifierTagSet: StandardModifierTagSet = docComment.modifierTagSet;\r\n\r\n expect(modifierTagSet.isAlpha()).toEqual(false);\r\n expect(modifierTagSet.isBeta()).toEqual(true);\r\n expect(modifierTagSet.isInternal()).toEqual(true);\r\n});\r\n\r\ntest('02 A basic TSDoc comment with common components', () => {\r\n const configuration: TSDocConfiguration = new TSDocCon
|