mirror of
https://github.com/maputnik/editor.git
synced 2026-08-24 14:07:33 +00:00
Remove export for a method that isn't used outside the file.
This commit is contained in:
@@ -19,7 +19,7 @@ const OUTPUT_DIR = path.resolve(process.cwd(), ".nyc_output");
|
|||||||
* Reads the istanbul coverage object (injected by vite-plugin-istanbul) from the
|
* Reads the istanbul coverage object (injected by vite-plugin-istanbul) from the
|
||||||
* given page. Returns `null` when the page has not been instrumented.
|
* given page. Returns `null` when the page has not been instrumented.
|
||||||
*/
|
*/
|
||||||
export async function readCoverage(page: Page): Promise<unknown | null> {
|
async function readCoverage(page: Page): Promise<unknown | null> {
|
||||||
try {
|
try {
|
||||||
return await page.evaluate(() => (window as unknown as { __coverage__?: unknown }).__coverage__ ?? null);
|
return await page.evaluate(() => (window as unknown as { __coverage__?: unknown }).__coverage__ ?? null);
|
||||||
} catch {
|
} catch {
|
||||||
|
|||||||
Reference in New Issue
Block a user