Can I ask a unique question? I have a tool for extracting data from webpages directly, not through APIs. I want to create end-to-end tests for this tool using the Jest library, but I need to ensure the web pages I'm referencing remain consistent. It's almost impossible to guarantee this with online resources.
Would it be a good idea to set up a local web server using express or fastify to serve static HTML pages for testing purposes, shutting it down once the tests are completed? Are there any other methods that are more effective?
I appreciate any advice you can provide. Thank you!