test(es/parser): Add a test for a fixed issue (#7467)

**Related issue:**

 - Closes #7456.
This commit is contained in:
Donny/강동윤 2023-05-30 13:35:07 +09:00 committed by GitHub
parent 076b4d4023
commit 8274cce9a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 133 additions and 0 deletions

View File

@ -0,0 +1,5 @@
function Form() {
return (
<Select<string>></Select>
);
}

View File

@ -0,0 +1,128 @@
{
"type": "Script",
"span": {
"start": 1,
"end": 74,
"ctxt": 0
},
"body": [
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 10,
"end": 14,
"ctxt": 0
},
"value": "Form",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 1,
"end": 74,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 17,
"end": 74,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 23,
"end": 70,
"ctxt": 0
},
"argument": {
"type": "ParenthesisExpression",
"span": {
"start": 30,
"end": 69,
"ctxt": 0
},
"expression": {
"type": "JSXElement",
"span": {
"start": 38,
"end": 63,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 39,
"end": 45,
"ctxt": 0
},
"value": "Select",
"optional": false
},
"span": {
"start": 38,
"end": 54,
"ctxt": 0
},
"attributes": [],
"selfClosing": false,
"typeArguments": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 45,
"end": 53,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 46,
"end": 52,
"ctxt": 0
},
"kind": "string"
}
]
}
},
"children": [],
"closing": {
"type": "JSXClosingElement",
"span": {
"start": 54,
"end": 63,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 56,
"end": 62,
"ctxt": 0
},
"value": "Select",
"optional": false
}
}
}
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
}
],
"interpreter": null
}