/** * Maps each `TestHost` container to its host's commit subscription, * so test doubles can react to tree changes. * * @internal */ export const onCommit = new WeakMap< object, (listener: () => void) => () => void >()