This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const config = { | |
| transform: { | |
| '^.+\\.jsx?$': 'babel-jest', | |
| }, | |
| testMatch: [ | |
| '**/__story__/**/*.story.js', | |
| './src/**/__story__/**/*.story.js', | |
| '*.story.js', | |
| ], | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const { resolve } = require('path') | |
| const source = resolve(process.cwd(), 'src') | |
| const web = resolve(process.cwd(), 'node_modules/@treact/web') | |
| const webSource = resolve(web, 'src') | |
| const tsExtensions = (platform, defaults) => [ | |
| ...defaults, | |
| `.${platform}.ts`, | |
| '.native.ts', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //@flow | |
| import {user} from './action' | |
| class AddUser extends React.Component<{ | |
| addUser: typeof user.add | |
| }, {username: string}> { | |
| render() { | |
| const {username, addUser} = this.props | |
| return ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| лол |
NewerOlder