playwright-test-explorer 0.0.8 → 0.0.10
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.
|
@@ -639,6 +639,9 @@ var TestServerConnection = class {
|
|
|
639
639
|
//#endregion
|
|
640
640
|
//#region src/utils/pathUtils.ts
|
|
641
641
|
/**
|
|
642
|
+
* Path utility functions for Playwright test server
|
|
643
|
+
*/
|
|
644
|
+
/**
|
|
642
645
|
* Escape special regex characters in a path
|
|
643
646
|
* From playwright-vscode: src/utils.ts
|
|
644
647
|
*/
|
|
@@ -675,6 +678,9 @@ function findPlaywrightCli(workspaceFolder) {
|
|
|
675
678
|
//#endregion
|
|
676
679
|
//#region src/utils/processUtils.ts
|
|
677
680
|
/**
|
|
681
|
+
* Process and environment utilities for spawning Playwright test server
|
|
682
|
+
*/
|
|
683
|
+
/**
|
|
678
684
|
* Add node_modules/.bin to PATH environment variable
|
|
679
685
|
*/
|
|
680
686
|
function addNpmRunPath(env, cwd) {
|
|
@@ -739,6 +745,12 @@ function processReport(receiver, report) {
|
|
|
739
745
|
|
|
740
746
|
//#endregion
|
|
741
747
|
//#region src/playwrightTestServer.ts
|
|
748
|
+
/**
|
|
749
|
+
* Standalone Playwright Test Server
|
|
750
|
+
* Based on Microsoft's playwright-vscode implementation
|
|
751
|
+
* Removed all VSCode-specific dependencies and test running functionality
|
|
752
|
+
* Only supports listing tests and files
|
|
753
|
+
*/
|
|
742
754
|
var CancellationToken = class {
|
|
743
755
|
_isCancelled = false;
|
|
744
756
|
_onCancelEmitter = new EventEmitter();
|
package/dist/{cli.js → cli.mjs}
RENAMED
|
@@ -1,11 +1,15 @@
|
|
|
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-Bc2ZCCQ0.mjs";
|
|
3
|
+
import path from "path";
|
|
3
4
|
import { program } from "commander";
|
|
4
5
|
import chalk from "chalk";
|
|
5
6
|
import ora from "ora";
|
|
6
|
-
import path from "path";
|
|
7
7
|
|
|
8
8
|
//#region src/cli.ts
|
|
9
|
+
/**
|
|
10
|
+
* Playwright Test Explorer CLI
|
|
11
|
+
* Command-line interface for exploring Playwright tests
|
|
12
|
+
*/
|
|
9
13
|
program.name("pw-test-explorer").description("CLI tool for exploring Playwright tests").version("0.1.0");
|
|
10
14
|
program.command("list-files").description("List all test files in the Playwright project").option("-w, --workspace <path>", "workspace folder path", process.cwd()).option("-c, --config <file>", "config file path (relative to workspace)", "playwright.config.ts").option("-o, --output <file>", "output file path to save JSON results").action(async (options) => {
|
|
11
15
|
const spinner = ora("Loading test files...").start();
|
package/dist/index.mjs
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "playwright-test-explorer",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.10",
|
|
4
4
|
"description": "A CLI tool and library for exploring Playwright tests",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -16,14 +16,14 @@
|
|
|
16
16
|
"files": [
|
|
17
17
|
"dist"
|
|
18
18
|
],
|
|
19
|
-
"main": "./dist/index.
|
|
20
|
-
"module": "./dist/index.
|
|
21
|
-
"types": "./dist/index.d.
|
|
19
|
+
"main": "./dist/index.mjs",
|
|
20
|
+
"module": "./dist/index.mjs",
|
|
21
|
+
"types": "./dist/index.d.mts",
|
|
22
22
|
"bin": {
|
|
23
|
-
"pw-test-explorer": "./dist/cli.
|
|
23
|
+
"pw-test-explorer": "./dist/cli.mjs"
|
|
24
24
|
},
|
|
25
25
|
"exports": {
|
|
26
|
-
".": "./dist/index.
|
|
26
|
+
".": "./dist/index.mjs",
|
|
27
27
|
"./package.json": "./package.json"
|
|
28
28
|
},
|
|
29
29
|
"scripts": {
|
|
@@ -34,11 +34,11 @@
|
|
|
34
34
|
"test:coverage": "vitest --coverage",
|
|
35
35
|
"test:legacy": "node test-cli.js",
|
|
36
36
|
"typecheck": "tsc --noEmit",
|
|
37
|
-
"test:example": "node dist/cli.
|
|
38
|
-
"test:list-files": "node dist/cli.
|
|
39
|
-
"test:list-tests": "node dist/cli.
|
|
40
|
-
"test:save-tree": "node dist/cli.
|
|
41
|
-
"test:save-files": "node dist/cli.
|
|
37
|
+
"test:example": "node dist/cli.mjs tree -w example",
|
|
38
|
+
"test:list-files": "node dist/cli.mjs list-files -w example",
|
|
39
|
+
"test:list-tests": "node dist/cli.mjs list-tests -w example -f tests/example.spec.ts",
|
|
40
|
+
"test:save-tree": "node dist/cli.mjs tree -w example -o example-tree.json",
|
|
41
|
+
"test:save-files": "node dist/cli.mjs list-files -w example -o example-files.json"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"chalk": "^5.6.2",
|
|
@@ -47,13 +47,13 @@
|
|
|
47
47
|
"ws": "^8.18.3"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@playwright/test": "^1.
|
|
51
|
-
"@types/node": "^24.
|
|
50
|
+
"@playwright/test": "^1.57.0",
|
|
51
|
+
"@types/node": "^24.10.1",
|
|
52
52
|
"@types/ws": "^8.18.1",
|
|
53
|
-
"@vitest/coverage-v8": "4.0.
|
|
54
|
-
"bumpp": "^10.3.
|
|
55
|
-
"tsdown": "^0.
|
|
53
|
+
"@vitest/coverage-v8": "4.0.14",
|
|
54
|
+
"bumpp": "^10.3.2",
|
|
55
|
+
"tsdown": "^0.16.7",
|
|
56
56
|
"typescript": "^5.9.3",
|
|
57
|
-
"vitest": "^4.0.
|
|
57
|
+
"vitest": "^4.0.14"
|
|
58
58
|
}
|
|
59
59
|
}
|
package/dist/index.js
DELETED
|
File without changes
|
|
File without changes
|