()
| 329 | }) |
| 330 | |
| 331 | async function renderOnce() { |
| 332 | const app = createSSRApp({ |
| 333 | render: () => h('div', [h(ComponentA), h(ComponentB)]), |
| 334 | }) |
| 335 | // @ts-expect-error ES2021 API |
| 336 | weakRefs.push(new WeakRef(app)) |
| 337 | |
| 338 | const html = await renderToString(app) |
| 339 | |
| 340 | expect(html).toContain('Component A false') |
| 341 | expect(html).toContain('Component B false') |
| 342 | } |
| 343 | |
| 344 | for (let i = 0; i < 10; i++) { |
| 345 | await renderOnce() |
no test coverage detected