You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.
Although I'm not getting any error when using idx, I'm getting "uncovered code" wherever idx is used. Using flow 0.61.0, idx 2.2.0, babel-plugin-idx: 2.2.0.
Example:
index.js
// @flow
import idx from 'idx';
type User = {
user: ?{
name: string,
friends: ?Array<User>,
}
};
const props: User = { user: null };
// Uncovered code warning from flow for arrow function below
idx(props, _ => _.user.friends[0].user.friends)
flow coverage index.js
Covered: 56.25% (9 of 16 expressions)
This has probably been addressed in more recent versions of Flow, since I cannot reproduce your case. I'm using Flow version v0.71.0 and idx@2.3.0 which I installed through yarn. Then I did:
$ flow coverage index.js
Covered: 100.00% (16 of 16 expressions)
Although I'm not getting any error when using idx, I'm getting "uncovered code" wherever idx is used. Using flow 0.61.0, idx 2.2.0, babel-plugin-idx: 2.2.0.
Example:
index.js
The text was updated successfully, but these errors were encountered: