Upgrade flow to v109 (#1395)
We need one tiny change in test code, where Flow (correctly) detects an error. I've added an error suppression comment because it is truly a Flow error, but is appropriate as we are testing an error condition. Test plan: `yarn test`
This commit is contained in:
parent
1ff13b266e
commit
026d3dc705
|
@ -62,7 +62,7 @@
|
|||
"eslint-plugin-jsx-a11y": "6.2.3",
|
||||
"eslint-plugin-react": "7.14.3",
|
||||
"file-loader": "^4.0.0",
|
||||
"flow-bin": "^0.105.0",
|
||||
"flow-bin": "^0.109.0",
|
||||
"jest": "^24.8.0",
|
||||
"jest-fetch-mock": "^2.1.2",
|
||||
"prettier": "1.18.2",
|
||||
|
|
|
@ -54,6 +54,7 @@ describe("core/version", () => {
|
|||
});
|
||||
it("fails given a JSON object missing a property", () => {
|
||||
const gitState = version().gitState;
|
||||
// $ExpectFlowError
|
||||
delete gitState.dirty;
|
||||
expect(() => parseGitState(JSON.stringify(gitState))).toThrow(
|
||||
"gitState: bad shape: {"
|
||||
|
|
|
@ -3746,10 +3746,10 @@ flatted@^2.0.0:
|
|||
resolved "https://registry.yarnpkg.com/flatted/-/flatted-2.0.1.tgz#69e57caa8f0eacbc281d2e2cb458d46fdb449e08"
|
||||
integrity sha512-a1hQMktqW9Nmqr5aktAux3JMNqaucxGcjtjWnZLHX7yyPCmlSV3M54nGYbqT8K+0GhF3NBgmJCc3ma+WOgX8Jg==
|
||||
|
||||
flow-bin@^0.105.0:
|
||||
version "0.105.2"
|
||||
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.105.2.tgz#9d03d5ae3e1d011e311f309cb8786b3b3695fec2"
|
||||
integrity sha512-VCHt0SCjFPviv/Ze/W7AgkcE0uH4TocypSFA8wR3ZH1P7BSjny4l3uhHyOjzU3Qo1i0jO4NyaU6q3Y5IaQ6xng==
|
||||
flow-bin@^0.109.0:
|
||||
version "0.109.0"
|
||||
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.109.0.tgz#dcdcb7402dd85b58200392d8716ccf14e5a8c24c"
|
||||
integrity sha512-tpcMTpAGIRivYhFV3KJq+zHI2HzcXo8MoGe9pXS4G/UZuey2Faq/e8/gdph2WF0erRlML5hmwfwiq7v9c25c7w==
|
||||
|
||||
flush-write-stream@^1.0.0:
|
||||
version "1.1.1"
|
||||
|
|
Loading…
Reference in New Issue