mirror of
https://github.com/maputnik/editor.git
synced 2026-07-09 15:37:28 +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
|
||||
* 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 {
|
||||
return await page.evaluate(() => (window as unknown as { __coverage__?: unknown }).__coverage__ ?? null);
|
||||
} catch {
|
||||
|
||||
Reference in New Issue
Block a user