1"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([["19439"],{42018(e,r,t){t.r(r),t.d(r,{metadata:()=>n,default:()=>p,frontMatter:()=>o,contentTitle:()=>a,toc:()=>l,assets:()=>c});var n=JSON.parse('{"id":"api/puppeteer.jscoverageoptions","title":"JSCoverageOptions interface","description":"Set of configurable options for JS coverage.","source":"@site/.generated-docs/next/api/puppeteer.jscoverageoptions.md","sourceDirName":"api","slug":"/api/puppeteer.jscoverageoptions","permalink":"/next/api/puppeteer.jscoverageoptions","draft":false,"unlisted":false,"tags":[],"version":"current","frontMatter":{"sidebar_label":"JSCoverageOptions"},"sidebar":"api","previous":{"title":"JSCoverageEntry","permalink":"/next/api/puppeteer.jscoverageentry"},"next":{"title":"KeyboardTypeOptions","permalink":"/next/api/puppeteer.keyboardtypeoptions"}}'),i=t(74848),s=t(28453);let o={sidebar_label:"JSCoverageOptions"},a="JSCoverageOptions interface",c={},l=[{value:"Signature",id:"signature",level:3},{value:"Properties",id:"properties",level:2}];function d(e){let r={a:"a",code:"code",h1:"h1",h2:"h2",h3:"h3",header:"header",p:"p",pre:"pre",...(0,s.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(r.header,{children:(0,i.jsx)(r.h1,{id:"jscoverageoptions-interface",children:"JSCoverageOptions interface"})}),"\n",(0,i.jsx)(r.p,{children:"Set of configurable options for JS coverage."}),"\n",(0,i.jsx)(r.h3,{id:"signature",children:"Signature"}),"\n",(0,i.jsx)(r.pre,{children:(0,i.jsx)(r.code,{className:"language-typescript",children:"export interface JSCoverageOptions\n"})}),"\n",(0,i.jsx)(r.h2,{id:"properties",children:"Properties"}),"\n",(0,i.jsxs)("table",{children:[(0,i.jsx)("thead",{children:(0,i.jsxs)("tr",{children:[(0,i.jsx)("th",{children:(0,i.jsx)(r.p,{children:"Property"})}),(0,i.jsx)("th",{children:(0,i.jsx)(r.p,{children:"Modifiers"})}),(0,i.jsx)("th",{children:(0,i.jsx)(r.p,{children:"Type"})}),(0,i.jsx)("th",{children:(0,i.jsx)(r.p,{children:"Description"})}),(0,i.jsx)("th",{children:(0,i.jsx)(r.p,{children:"Default"})})]})}),(0,i.jsxs)("tbody",{children:[(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{children:(0,i.jsx)("span",{id:"includerawscriptcoverage",children:"includeRawScriptCoverage"})}),(0,i.jsx)("td",{children:(0,i.jsx)(r.p,{children:(0,i.jsx)(r.code,{children:"optional"})})}),(0,i.jsx)("td",{children:(0,i.jsx)(r.p,{children:"boolean"})}),(0,i.jsx)("td",{children:(0,i.jsx)(r.p,{children:"Whether the result includes raw V8 script coverage entries."})}),(0,i.jsx)("td",{})]}),(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{children:(0,i.jsx)("span",{id:"reportanonymousscripts",children:"reportAnonymousScripts"})}),(0,i.jsx)("td",{children:(0,i.jsx)(r.p,{children:(0,i.jsx)(r.code,{children:"optional"})})}),(0,i.jsx)("td",{children:(0,i.jsx)(r.p,{children:"boolean"})}),(0,i.jsx)("td",{children:(0,i.jsx)(r.p,{children:"Whether anonymous scripts generated by the page should be reported."})}),(0,i.jsx)("td",{})]}),(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{children:(0,i.jsx)("span",{id:"resetonnavigation",children:"resetOnNavigation"})}),(0,i.jsx)("td",{children:(0,i.jsx)(r.p,{children:(0,i.jsx)(r.code,{children:"optional"})})}),(0,i.jsx)("td",{children:(0,i.jsx)(r.p,{children:"boolean"})}),(0,i.jsxs)("td",{children:[(0,i.jsx)(r.p,{children:"Whether to reset coverage on every navigation."}),(0,i.jsxs)(r.p,{children:["Setting this to ",(0,i.jsx)(r.code,{children:"false"})," does not guarantee that coverage survives a navigation. Chrome may discard the previous page's JavaScript execution environment, including its coverage data, when navigating. To preserve coverage, call ",(0,i.jsx)(r.a,{href:"/next/api/puppeteer.coverage.stopjscoverage",children:"Coverage.stopJSCoverage()"})," before navigating away, then start a new collection for the next page and merge the reports."]})]}),(0,i.jsx)("td",{})]}),(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{children:(0,i.jsx)("span",{id:"useblockcoverage",children:"useBlockCoverage"})}),(0,i.jsx)("td",{children:(0,i.jsx)(r.p,{children:(0,i.jsx)(r.code,{children:"optional"})})}),(0,i.jsx)("td",{children:(0,i.jsx)(r.p,{children:"boolean"})}),(0,i.jsx)("td",{children:(0,i.jsx)(r.p,{children:"Whether to collect coverage information at the block level. If true, coverage will be collected at the block level (this is the default). If false, coverage will be collected at the function level."})}),(0,i.jsx)("td",{})]})]})]})]})}function p(e={}){let{wrapper:r}={...(0,s.R)(),...e.components};return r?(0,i.jsx)(r,{...e,children:(0,i.jsx)(d,{...e})}):d(e)}},28453(e,r,t){t.d(r,{R:()=>o,x:()=>a});var n=t(96540);let i={},s=n.createContext(i);function o(e){let r=n.useContext(s);return n.useMemo(function(){return"function"==typeof e?e(r):{...r,...e}},[r,e])}function a(e){let r;return r=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:o(e.components),n.createElement(s.Provider,{value:r},e.children)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.