This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { useEffect, useState } from 'react' | |
interface HookResultIdleState { | |
state: 'idle' | |
} | |
interface HookResultLoadingState { | |
state: 'loading' | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { createWriteStream } from 'fs' | |
import { resolve } from 'path' | |
import fetch from 'node-fetch' | |
import playwright from 'playwright' | |
;(async () => { | |
const browser = await playwright['chromium'].launch({ | |
}) | |
const context = await browser.newContext({ acceptDownloads: true }) |