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

Commit

Permalink
Chore: Add a way to test TSX specific issues (fixes #376) (#398)
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesHenry committed Oct 22, 2017
1 parent 9c71a62 commit a214f71
Show file tree
Hide file tree
Showing 6 changed files with 1,448 additions and 2 deletions.
16 changes: 16 additions & 0 deletions tests/ast-alignment/fixtures-to-test.js
Expand Up @@ -314,6 +314,22 @@ let fixturePatternConfigsToTest = [

/* ================================================== */

/**
* TSX-SPECIFIC FILES
*/

createFixturePatternConfigFor("tsx", {
fileType: "tsx",
ignore: [
/**
* AST difference
*/
"react-typed-props"
]
}),

/* ================================================== */

/**
* TYPESCRIPT-SPECIFIC FILES
*/
Expand Down
12 changes: 12 additions & 0 deletions tests/fixtures/tsx/react-typed-props.src.tsx
@@ -0,0 +1,12 @@
import * as React from 'react'
type Props = {
title: string
}

export default function App(props: Props) {
return (
<h1>
{props.title}
</h1>
)
}

0 comments on commit a214f71

Please sign in to comment.