puppeteer/assets/js/42f432f9.4b264107.js
2021-10-07 15:21:45 +00:00

1 line
4.6 KiB
JavaScript

"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[263],{3905:function(e,r,t){t.d(r,{Zo:function(){return i},kt:function(){return g}});var o=t(67294);function n(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function p(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function a(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?p(Object(t),!0).forEach((function(r){n(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):p(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function c(e,r){if(null==e)return{};var t,o,n=function(e,r){if(null==e)return{};var t,o,n={},p=Object.keys(e);for(o=0;o<p.length;o++)t=p[o],r.indexOf(t)>=0||(n[t]=e[t]);return n}(e,r);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(e);for(o=0;o<p.length;o++)t=p[o],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(n[t]=e[t])}return n}var s=o.createContext({}),u=function(e){var r=o.useContext(s),t=r;return e&&(t="function"==typeof e?e(r):a(a({},r),e)),t},i=function(e){var r=u(e.components);return o.createElement(s.Provider,{value:r},e.children)},l={inlineCode:"code",wrapper:function(e){var r=e.children;return o.createElement(o.Fragment,{},r)}},v=o.forwardRef((function(e,r){var t=e.components,n=e.mdxType,p=e.originalType,s=e.parentName,i=c(e,["components","mdxType","originalType","parentName"]),v=u(t),g=n,f=v["".concat(s,".").concat(g)]||v[g]||l[g]||p;return t?o.createElement(f,a(a({ref:r},i),{},{components:t})):o.createElement(f,a({ref:r},i))}));function g(e,r){var t=arguments,n=r&&r.mdxType;if("string"==typeof e||n){var p=t.length,a=new Array(p);a[0]=v;var c={};for(var s in r)hasOwnProperty.call(r,s)&&(c[s]=r[s]);c.originalType=e,c.mdxType="string"==typeof e?e:n,a[1]=c;for(var u=2;u<p;u++)a[u]=t[u];return o.createElement.apply(null,a)}return o.createElement.apply(null,t)}v.displayName="MDXCreateElement"},70895:function(e,r,t){t.r(r),t.d(r,{frontMatter:function(){return c},contentTitle:function(){return s},metadata:function(){return u},toc:function(){return i},default:function(){return v}});var o=t(87462),n=t(63366),p=(t(67294),t(3905)),a=["components"],c={},s=void 0,u={unversionedId:"puppeteer.coverage.stopjscoverage",id:"version-9.1.1/puppeteer.coverage.stopjscoverage",isDocsHomePage:!1,title:"puppeteer.coverage.stopjscoverage",description:"Home &gt; puppeteer &gt; Coverage &gt; stopJSCoverage",source:"@site/versioned_docs/version-9.1.1/puppeteer.coverage.stopjscoverage.md",sourceDirName:".",slug:"/puppeteer.coverage.stopjscoverage",permalink:"/puppeteer/docs/9.1.1/puppeteer.coverage.stopjscoverage",editUrl:"https://github.com/facebook/puppeteer/edit/main/website/versioned_docs/version-9.1.1/puppeteer.coverage.stopjscoverage.md",version:"9.1.1",frontMatter:{},sidebar:"version-9.1.1/docs",previous:{title:"puppeteer.coverage.stopcsscoverage",permalink:"/puppeteer/docs/9.1.1/puppeteer.coverage.stopcsscoverage"},next:{title:"puppeteer.timeouterror",permalink:"/puppeteer/docs/9.1.1/puppeteer.timeouterror"}},i=[{value:"Coverage.stopJSCoverage() method",id:"coveragestopjscoverage-method",children:[]},{value:"Remarks",id:"remarks",children:[]}],l={toc:i};function v(e){var r=e.components,t=(0,n.Z)(e,a);return(0,p.kt)("wrapper",(0,o.Z)({},l,t,{components:r,mdxType:"MDXLayout"}),(0,p.kt)("p",null,(0,p.kt)("a",{parentName:"p",href:"/puppeteer/docs/9.1.1/index"},"Home")," ",">"," ",(0,p.kt)("a",{parentName:"p",href:"/puppeteer/docs/9.1.1/puppeteer"},"puppeteer")," ",">"," ",(0,p.kt)("a",{parentName:"p",href:"/puppeteer/docs/9.1.1/puppeteer.coverage"},"Coverage")," ",">"," ",(0,p.kt)("a",{parentName:"p",href:"/puppeteer/docs/9.1.1/puppeteer.coverage.stopjscoverage"},"stopJSCoverage")),(0,p.kt)("h2",{id:"coveragestopjscoverage-method"},"Coverage.stopJSCoverage() method"),(0,p.kt)("b",null,"Signature:"),(0,p.kt)("pre",null,(0,p.kt)("code",{parentName:"pre",className:"language-typescript"},"stopJSCoverage(): Promise<CoverageEntry[]>;\n")),(0,p.kt)("b",null,"Returns:"),(0,p.kt)("p",null,"Promise","<",(0,p.kt)("a",{parentName:"p",href:"/puppeteer/docs/9.1.1/puppeteer.coverageentry"},"CoverageEntry"),"[","]",">"),(0,p.kt)("p",null,"Promise that resolves to the array of coverage reports for all scripts."),(0,p.kt)("h2",{id:"remarks"},"Remarks"),(0,p.kt)("p",null,"JavaScript Coverage doesn't include anonymous scripts by default. However, scripts with sourceURLs are reported."))}v.isMDXComponent=!0}}]);