Permalink
Browse files

Add reportAnonymousScripts option for JS coverage

  • Loading branch information...
zploskey committed Jul 14, 2018
1 parent fa075d6 commit cd67702f950d9db24501d279e0b3c30aaad32c43
Showing with 7 additions and 2 deletions.
  1. +7 −2 src/Coverage.re
@@ -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 :
@@ -24,7 +28,8 @@ external makeCSSCoverageOptions :

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

[@bs.send]

0 comments on commit cd67702

Please sign in to comment.