(factory: TestCaseFactory)
| 26 | } |
| 27 | |
| 28 | async function runOnServer(factory: TestCaseFactory) { |
| 29 | const [app, _] = await factory() |
| 30 | return (await renderToString(app)) |
| 31 | .replace(/<!--[\[\]]-->/g, '') // remove fragment wrappers |
| 32 | .trim() |
| 33 | } |
| 34 | |
| 35 | async function getOutput(factory: TestCaseFactory) { |
| 36 | const clientResult = await runOnClient(factory) |
no test coverage detected