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.
Files changed (2) hide show
  1. package/cli.js +9 -0
  2. 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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "deflake",
3
- "version": "1.2.4",
3
+ "version": "1.2.5",
4
4
  "description": "AI-powered self-healing tool for Playwright, Cypress, and WebdriverIO tests.",
5
5
  "main": "client.js",
6
6
  "bin": {