### What problem does this feature solve? The `createSnapshotSerializer` (https://github.com/web-infra-dev/rsbuild/blob/main/scripts/test-helper/src/index.ts#L17C17-L50) is battle tested and not coupled with Rsbuild. If possible, I could help to extract it to a new package and put it under `rspack-contrib` organization, and reuse it in Rslib 🤗. ### What does the proposed API look like? N/A.