({ page }, use)
| 84 | }, |
| 85 | |
| 86 | async runExample({ page }, use) { |
| 87 | await use(async (exampleFilePath) => { |
| 88 | const emulatorUrl = EMULATOR_URL; |
| 89 | const content = await readFile(exampleFilePath, 'utf8'); |
| 90 | |
| 91 | page.mainFrame().addScriptTag({ content }); |
| 92 | |
| 93 | await page.evaluate(async (emulatorUrl) => { |
| 94 | await window.runExample(emulatorUrl); |
| 95 | }, emulatorUrl); |
| 96 | }); |
| 97 | }, |
| 98 | }); |
| 99 | |
| 100 | export { test, expect }; |
no test coverage detected