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

Commit a214f71

Browse files
authored
Chore: Add a way to test TSX specific issues (fixes #376) (#398)
1 parent 9c71a62 commit a214f71

File tree

6 files changed

+1448
-2
lines changed

6 files changed

+1448
-2
lines changed

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

+16
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,22 @@ let fixturePatternConfigsToTest = [
314314

315315
/* ================================================== */
316316

317+
/**
318+
* TSX-SPECIFIC FILES
319+
*/
320+
321+
createFixturePatternConfigFor("tsx", {
322+
fileType: "tsx",
323+
ignore: [
324+
/**
325+
* AST difference
326+
*/
327+
"react-typed-props"
328+
]
329+
}),
330+
331+
/* ================================================== */
332+
317333
/**
318334
* TYPESCRIPT-SPECIFIC FILES
319335
*/
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import * as React from 'react'
2+
type Props = {
3+
title: string
4+
}
5+
6+
export default function App(props: Props) {
7+
return (
8+
<h1>
9+
{props.title}
10+
</h1>
11+
)
12+
}

0 commit comments

Comments
 (0)