deflake 1.2.4 → 1.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli.js +9 -0
- package/package.json +1 -1
package/cli.js
CHANGED
|
@@ -765,6 +765,15 @@ function showFrameworkReport() {
|
|
|
765
765
|
const opener = process.platform === 'win32' ? 'start' : 'open';
|
|
766
766
|
|
|
767
767
|
if (framework === 'playwright') {
|
|
768
|
+
// Playwright default report port is 9323. Try to close previous instance if on Mac/Linux
|
|
769
|
+
try {
|
|
770
|
+
if (process.platform !== 'win32') {
|
|
771
|
+
const pid = require('child_process').execSync('lsof -t -i:9323').toString().trim();
|
|
772
|
+
if (pid) {
|
|
773
|
+
require('child_process').execSync(`kill ${pid}`);
|
|
774
|
+
}
|
|
775
|
+
}
|
|
776
|
+
} catch (e) {}
|
|
768
777
|
command = 'npx playwright show-report';
|
|
769
778
|
} else if (framework === 'cypress') {
|
|
770
779
|
// Broad search for common Cypress HTML reports
|