return id node map when rebuild

This commit is contained in:
Yanzhen Yu
2026-04-01 12:00:00 +08:00
parent b170c3de59
commit 0434129b00
5 changed files with 23 additions and 6 deletions

View File

@@ -99,7 +99,7 @@ describe('integration tests', () => {
const rebuildHtml = (await page.evaluate(`${this.code}
const x = new XMLSerializer();
const [snap] = rrweb.snapshot(document);
x.serializeToString(rrweb.rebuild(snap));
x.serializeToString(rrweb.rebuild(snap)[0]);
`)).replace(/\n\n/g, '');
await page.goto(`http://localhost:3030/html`);
await page.setContent(html.dest);