Here's an easy way to add easy cross-browser testing on your existing projects using browser-sync
npm i browser-sync --save-dev
"test:browser": "browser-sync start --config ./bs-config.js"
module.exports = {
"proxy": "localhost:3000", // point to your app's address
"port": 3002, // the port you'd like to use
"browser": ["chrome", "firefox", "safari"] // specify what browsers you want to automatically open
};
Now when you run npm run test:browser
, all of the specified browsers will open automatically, pointed to your site.