playwright-test-explorer 0.0.10 → 0.0.12
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/dist/{api-Bc2ZCCQ0.mjs → api-Bbd6qGsY.mjs} +4 -14
- package/dist/cli.mjs +2 -4
- package/dist/index.d.mts +0 -1
- package/dist/index.mjs +2 -3
- package/package.json +14 -14
|
@@ -3,10 +3,8 @@ import path from "path";
|
|
|
3
3
|
import { spawn } from "child_process";
|
|
4
4
|
import WebSocket from "ws";
|
|
5
5
|
import fs from "fs/promises";
|
|
6
|
-
|
|
7
|
-
//#region rolldown:runtime
|
|
6
|
+
//#region \0rolldown/runtime.js
|
|
8
7
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
9
|
-
|
|
10
8
|
//#endregion
|
|
11
9
|
//#region src/upstream/teleReceiver.ts
|
|
12
10
|
var TeleReporterReceiver = class {
|
|
@@ -406,7 +404,6 @@ function parseRegexPatterns(patterns) {
|
|
|
406
404
|
return new RegExp(p.r.source, p.r.flags);
|
|
407
405
|
});
|
|
408
406
|
}
|
|
409
|
-
|
|
410
407
|
//#endregion
|
|
411
408
|
//#region src/upstream/events.ts
|
|
412
409
|
let Disposable;
|
|
@@ -444,8 +441,8 @@ var EventEmitter = class {
|
|
|
444
441
|
});
|
|
445
442
|
if (!dispatch) return;
|
|
446
443
|
for (let index = 0; index < this._deliveryQueue.length; index++) {
|
|
447
|
-
const { listener, event
|
|
448
|
-
listener.call(null, event
|
|
444
|
+
const { listener, event } = this._deliveryQueue[index];
|
|
445
|
+
listener.call(null, event);
|
|
449
446
|
}
|
|
450
447
|
this._deliveryQueue = void 0;
|
|
451
448
|
}
|
|
@@ -454,7 +451,6 @@ var EventEmitter = class {
|
|
|
454
451
|
if (this._deliveryQueue) this._deliveryQueue = [];
|
|
455
452
|
}
|
|
456
453
|
};
|
|
457
|
-
|
|
458
454
|
//#endregion
|
|
459
455
|
//#region src/upstream/testServerConnection.ts
|
|
460
456
|
var WebSocketTestServerTransport = class {
|
|
@@ -635,7 +631,6 @@ var TestServerConnection = class {
|
|
|
635
631
|
} catch {}
|
|
636
632
|
}
|
|
637
633
|
};
|
|
638
|
-
|
|
639
634
|
//#endregion
|
|
640
635
|
//#region src/utils/pathUtils.ts
|
|
641
636
|
/**
|
|
@@ -674,7 +669,6 @@ function findPlaywrightCli(workspaceFolder) {
|
|
|
674
669
|
throw new Error("Playwright installation not found. Please install @playwright/test");
|
|
675
670
|
}
|
|
676
671
|
}
|
|
677
|
-
|
|
678
672
|
//#endregion
|
|
679
673
|
//#region src/utils/processUtils.ts
|
|
680
674
|
/**
|
|
@@ -711,7 +705,6 @@ function createTestServerEnv(baseEnv, customEnv, cwd) {
|
|
|
711
705
|
FORCE_COLOR: "1"
|
|
712
706
|
}, cwd);
|
|
713
707
|
}
|
|
714
|
-
|
|
715
708
|
//#endregion
|
|
716
709
|
//#region src/utils/reporterFactory.ts
|
|
717
710
|
/**
|
|
@@ -742,7 +735,6 @@ function createTestListReceiver(reporter) {
|
|
|
742
735
|
function processReport(receiver, report) {
|
|
743
736
|
for (const message of report) receiver.dispatch(message);
|
|
744
737
|
}
|
|
745
|
-
|
|
746
738
|
//#endregion
|
|
747
739
|
//#region src/playwrightTestServer.ts
|
|
748
740
|
/**
|
|
@@ -912,7 +904,6 @@ var PlaywrightTestServer = class {
|
|
|
912
904
|
this._disposeTestServer();
|
|
913
905
|
}
|
|
914
906
|
};
|
|
915
|
-
|
|
916
907
|
//#endregion
|
|
917
908
|
//#region src/api.ts
|
|
918
909
|
async function listTestFile(workspaceFolder = process.cwd(), configFile = "playwright.config.ts", outputFile) {
|
|
@@ -1112,6 +1103,5 @@ async function treeStructure(workspaceFolder = process.cwd(), configFile = "play
|
|
|
1112
1103
|
testServer.close();
|
|
1113
1104
|
}
|
|
1114
1105
|
}
|
|
1115
|
-
|
|
1116
1106
|
//#endregion
|
|
1117
|
-
export { CancellationToken as i, listTestFile as n, treeStructure as r, listTestCase as t };
|
|
1107
|
+
export { CancellationToken as i, listTestFile as n, treeStructure as r, listTestCase as t };
|
package/dist/cli.mjs
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { i as CancellationToken, n as listTestFile, r as treeStructure, t as listTestCase } from "./api-
|
|
2
|
+
import { i as CancellationToken, n as listTestFile, r as treeStructure, t as listTestCase } from "./api-Bbd6qGsY.mjs";
|
|
3
3
|
import path from "path";
|
|
4
4
|
import { program } from "commander";
|
|
5
5
|
import chalk from "chalk";
|
|
6
6
|
import ora from "ora";
|
|
7
|
-
|
|
8
7
|
//#region src/cli.ts
|
|
9
8
|
/**
|
|
10
9
|
* Playwright Test Explorer CLI
|
|
@@ -94,6 +93,5 @@ ${chalk.bold("Examples:")}
|
|
|
94
93
|
$ pw-test-explorer tree -w /path/to/project
|
|
95
94
|
`);
|
|
96
95
|
program.parse();
|
|
97
|
-
|
|
98
96
|
//#endregion
|
|
99
|
-
export {
|
|
97
|
+
export {};
|
package/dist/index.d.mts
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import { n as listTestFile, r as treeStructure, t as listTestCase } from "./api-
|
|
2
|
-
|
|
3
|
-
export { listTestCase, listTestFile, treeStructure };
|
|
1
|
+
import { n as listTestFile, r as treeStructure, t as listTestCase } from "./api-Bbd6qGsY.mjs";
|
|
2
|
+
export { listTestCase, listTestFile, treeStructure };
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "playwright-test-explorer",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.12",
|
|
4
4
|
"description": "A CLI tool and library for exploring Playwright tests",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
|
-
"homepage": "https://github.com/
|
|
7
|
+
"homepage": "https://github.com/li-zhixin/playwright-test-explorer#readme",
|
|
8
8
|
"bugs": {
|
|
9
|
-
"url": "https://github.com/
|
|
9
|
+
"url": "https://github.com/li-zhixin/playwright-test-explorer/issues"
|
|
10
10
|
},
|
|
11
11
|
"repository": {
|
|
12
12
|
"type": "git",
|
|
13
|
-
"url": "git+https://github.com/
|
|
13
|
+
"url": "git+https://github.com/li-zhixin/playwright-test-explorer.git"
|
|
14
14
|
},
|
|
15
15
|
"author": "Author Name <author.name@mail.com>",
|
|
16
16
|
"files": [
|
|
@@ -42,18 +42,18 @@
|
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"chalk": "^5.6.2",
|
|
45
|
-
"commander": "^14.0.
|
|
46
|
-
"ora": "^9.
|
|
47
|
-
"ws": "^8.
|
|
45
|
+
"commander": "^14.0.3",
|
|
46
|
+
"ora": "^9.3.0",
|
|
47
|
+
"ws": "^8.20.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@playwright/test": "^1.
|
|
51
|
-
"@types/node": "^
|
|
50
|
+
"@playwright/test": "^1.58.2",
|
|
51
|
+
"@types/node": "^25.5.0",
|
|
52
52
|
"@types/ws": "^8.18.1",
|
|
53
|
-
"@vitest/coverage-v8": "4.
|
|
54
|
-
"bumpp": "^
|
|
55
|
-
"tsdown": "^0.
|
|
56
|
-
"typescript": "^
|
|
57
|
-
"vitest": "^4.
|
|
53
|
+
"@vitest/coverage-v8": "4.1.2",
|
|
54
|
+
"bumpp": "^11.0.1",
|
|
55
|
+
"tsdown": "^0.21.7",
|
|
56
|
+
"typescript": "^6.0.2",
|
|
57
|
+
"vitest": "^4.1.2"
|
|
58
58
|
}
|
|
59
59
|
}
|