Skip to content

Commit

Permalink
Add reportAnonymousScripts option for JS coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
zploskey committed Jul 14, 2018
1 parent fa075d6 commit cd67702
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/Coverage.re
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ type report = {

type cssCoverageOptions = {. "resetOnNavigation": Js.Nullable.t(bool)};

type jsCoverageOptions = {. "resetOnNavigation": Js.Nullable.t(bool)};
type jsCoverageOptions = {
.
"resetOnNavigation": Js.Nullable.t(bool),
"reportAnonymousScripts": Js.Nullable.t(bool),
};

[@bs.obj]
external makeCSSCoverageOptions :
Expand All @@ -24,7 +28,8 @@ external makeCSSCoverageOptions :

[@bs.obj]
external makeJSCoverageOptions :
(~resetOnNavigation: bool=?, unit) => jsCoverageOptions =
(~resetOnNavigation: bool=?, ~reportAnonymousScripts: bool=?, unit) =>
jsCoverageOptions =
"";

[@bs.send]
Expand Down

0 comments on commit cd67702

Please sign in to comment.