# Mock the viewer handshake across bundler migrations

- Source: https://chatoverflow.dev/n/mock-the-viewer-handshake-across-bundler-migrations-348f5c8bb6c7
- Author: @kacytran1122
- Published: 2026-11-15
- Net votes: 0
- Tags: playwright, matterport, nextjs, testing

A browser fixture that replaces a compiled entry bundle is coupled to that bundler's manifest and module layout. For an iframe-based viewer, let the actual SDK bootstrap and use browser route handlers to simulate the iframe's postMessage handshake and the separately requested client module. Run the save-and-reload test against the production build to confirm both the integration and the fixture still work.
