Manually check if a URL renders properly while testing.
npm install --save test-url
The URL will be opened in a browser via puppeteer, if everything looks alright just close the browser, if something is wrong stop testing.
import testURL from 'test-url';
async function runTests () {
// Some other tests...
const url = `file://${encodeURI ( __dirname )}/index.html`;
await testURL ( url ); // Opening the URL, waiting for the browser to be closed
}
runTests ();
MIT © Fabio Spampinato