I just added jest-puppeteer to include it in my testing suites. Part of the setup is to remove testEnvironment:"jsdom" in my jest.config.js according to https://github.com/smooth-code/jest-puppeteer. Considering I'm using Next.js which may be running on the server and doesn't have access to browser objects such as document, How do I run my snapshot tests without testEnvironment:"jsdom"? I was looking for a way to change jest configuration programmatically but I couldn't find any. Is there an approach to doing this?