Skip to content

Commit 83cdea4

Browse files
👌 add details on a mutationObserver test
1 parent b0eae54 commit 83cdea4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

‎packages/rum-recorder/src/domain/rrweb/mutationObserver.spec.ts‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,12 @@ describe('startMutationCollection', () => {
145145
})
146146
})
147147

148-
describe('does not emit mutations on freshly serialized nodes and their descendants', () => {
148+
describe('does not emit mutations on freshly re-serialized nodes and their descendants', () => {
149+
// Note about those tests: any mutation with a not-yet-serialized 'target' will be trivially
150+
// ignored. We want to focus on mutations with a 'target' that have already been serialized
151+
// (during the document snapshot for example), and re-serialized (by being added in the
152+
// document) during the processed mutation batched.
153+
149154
it('attribute mutations', () => {
150155
const element = document.createElement('div')
151156
sandbox.appendChild(element)

0 commit comments

Comments
 (0)