This repository has been archived by the owner on May 17, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add @babel/plugin-transform-flow-strip-types in favor of @babel/prese…
…t-flow #505
- Loading branch information
1 parent
5070ce2
commit 09b075a
Showing
7 changed files
with
46 additions
and
11 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// @flow | ||
import {test} from 'fusion-test-utils'; | ||
|
||
import classPropFixture from '../class-props'; | ||
|
||
test('Class properties work /w flow annotation', async assert => { | ||
const result = new classPropFixture(); | ||
assert.equal( | ||
result.classProp(), | ||
true, | ||
'class props work and evaluates to true' | ||
); | ||
}); |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// @flow | ||
|
||
import React, {Component} from 'react'; | ||
|
||
export default class ClassPropFixture { | ||
// The following flow annotation is required in order to reproduce the failing test case (#505) | ||
boundMethod: Function; | ||
|
||
constructor() { | ||
this.boundMethod = this.boundMethod.bind(this); | ||
} | ||
|
||
boundMethod(): void {} | ||
|
||
classProp = () => { | ||
return true; | ||
}; | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -613,13 +613,6 @@ | |
js-levenshtein "^1.1.3" | ||
semver "^5.3.0" | ||
|
||
"@babel/[email protected]": | ||
version "7.0.0" | ||
resolved "https://registry.yarnpkg.com/@babel/preset-flow/-/preset-flow-7.0.0.tgz#afd764835d9535ec63d8c7d4caf1c06457263da2" | ||
dependencies: | ||
"@babel/helper-plugin-utils" "^7.0.0" | ||
"@babel/plugin-transform-flow-strip-types" "^7.0.0" | ||
|
||
"@babel/[email protected]": | ||
version "7.0.0" | ||
resolved "https://registry.yarnpkg.com/@babel/preset-react/-/preset-react-7.0.0.tgz#e86b4b3d99433c7b3e9e91747e2653958bc6b3c0" | ||
|