@vscode/test-web 0.0.59 → 0.0.61

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.
@@ -0,0 +1 @@
1
+ {"root":["../../../src/browser/main.ts","../../../src/browser/workbench.api.d.ts"],"version":"5.6.2"}
@@ -0,0 +1 @@
1
+ {"root":["../../../src/browser/main.ts","../../../src/browser/workbench.api.d.ts"],"version":"5.6.2"}
@@ -0,0 +1,140 @@
1
+ #!/usr/bin/env node
2
+ export type BrowserType = 'chromium' | 'firefox' | 'webkit' | 'none';
3
+ export type VSCodeQuality = 'insiders' | 'stable';
4
+ export type GalleryExtension = {
5
+ readonly id: string;
6
+ readonly preRelease?: boolean;
7
+ };
8
+ export interface Options {
9
+ /**
10
+ * Browser to open: 'chromium' | 'firefox' | 'webkit' | 'none'.
11
+ */
12
+ browserType: BrowserType;
13
+ /**
14
+ * Browser command line options.
15
+ */
16
+ browserOptions?: string[];
17
+ /**
18
+ * Absolute path to folder that contains one or more extensions (in subfolders).
19
+ * Extension folders include a `package.json` extension manifest.
20
+ */
21
+ extensionDevelopmentPath?: string;
22
+ /**
23
+ * Absolute path to the extension tests runner module.
24
+ * Can be either a file path or a directory path that contains an `index.js`.
25
+ * The module is expected to have a `run` function of the following signature:
26
+ *
27
+ * ```ts
28
+ * function run(): Promise<void>;
29
+ * ```
30
+ *
31
+ * When running the extension test, the Extension Development Host will call this function
32
+ * that runs the test suite. This function should throws an error if any test fails.
33
+ */
34
+ extensionTestsPath?: string;
35
+ /**
36
+ * The quality of the VS Code to use. Supported qualities are:
37
+ * - `'stable'` : The latest stable build will be used
38
+ * - `'insiders'` : The latest insiders build will be used
39
+ *
40
+ * Currently defaults to `insiders`, which is latest stable insiders.
41
+ *
42
+ * The setting is ignored when a vsCodeDevPath is provided.
43
+ */
44
+ quality?: VSCodeQuality;
45
+ /**
46
+ * The commit of the VS Code build to use. If not set, the latest build is used.
47
+ *
48
+ * The setting is ignored when a vsCodeDevPath is provided.
49
+ */
50
+ commit?: string;
51
+ /**
52
+ * @deprecated. Use `quality` or `vsCodeDevPath` instead.
53
+ */
54
+ version?: string;
55
+ /**
56
+ * Open the dev tools.
57
+ */
58
+ devTools?: boolean;
59
+ /**
60
+ * Do not show the browser. Defaults to `true` if a `extensionTestsPath` is provided, `false` otherwise.
61
+ */
62
+ headless?: boolean;
63
+ /**
64
+ * If set, opens the page with cross origin isolation enabled.
65
+ */
66
+ coi?: boolean;
67
+ /**
68
+ * If set, serves the page with ESM usage.
69
+ */
70
+ esm?: boolean;
71
+ /**
72
+ * @deprecated. Use `printServerLog` instead.
73
+ */
74
+ hideServerLog?: boolean;
75
+ /**
76
+ * If set, the server access log is printed to the console. Defaults to `false`.
77
+ */
78
+ printServerLog?: boolean;
79
+ /**
80
+ * Expose browser debugging on this port number, and wait for the debugger to attach before running tests.
81
+ */
82
+ waitForDebugger?: number;
83
+ /**
84
+ * A local path to open VSCode on. VS Code for the browser will open an a virtual
85
+ * file system ('vscode-test-web://mount') where the files of the local folder will served.
86
+ * The file system is read/write, but modifications are stored in memory and not written back to disk.
87
+ */
88
+ folderPath?: string;
89
+ /**
90
+ * The folder URI to open VSCode on. If 'folderPath' is set this will be ignored and 'vscode-test-web://mount'
91
+ * is used as folder URI instead.
92
+ */
93
+ folderUri?: string;
94
+ /**
95
+ * Permissions granted to the opened browser. An list of permissions can be found at
96
+ * https://playwright.dev/docs/api/class-browsercontext#browser-context-grant-permissions
97
+ * Example: [ 'clipboard-read', 'clipboard-write' ]
98
+ */
99
+ permissions?: string[];
100
+ /**
101
+ * Absolute paths pointing to built-in extensions to include.
102
+ */
103
+ extensionPaths?: string[];
104
+ /**
105
+ * List of extensions to include. The id format is ${publisher}.${name}.
106
+ */
107
+ extensionIds?: GalleryExtension[];
108
+ /**
109
+ * Absolute path pointing to VS Code sources to use.
110
+ */
111
+ vsCodeDevPath?: string;
112
+ /**
113
+ * Print out more information while the server is running, e.g. the console output in the browser
114
+ */
115
+ verbose?: boolean;
116
+ /**
117
+ * The port to start the server on. Defaults to `3000`.
118
+ */
119
+ port?: number;
120
+ /**
121
+ * The host name to start the server on. Defaults to `localhost`
122
+ */
123
+ host?: string;
124
+ /**
125
+ * The temporary folder for storing the VS Code builds used for running the tests. Defaults to `$CURRENT_WORKING_DIR/.vscode-test-web`.
126
+ */
127
+ testRunnerDataDir?: string;
128
+ }
129
+ export interface Disposable {
130
+ dispose(): void;
131
+ }
132
+ /**
133
+ * Runs the tests in a browser.
134
+ *
135
+ * @param options The options defining browser type, extension and test location.
136
+ */
137
+ export declare function runTests(options: Options & {
138
+ extensionTestsPath: string;
139
+ }): Promise<void>;
140
+ export declare function open(options: Options): Promise<Disposable>;
@@ -0,0 +1 @@
1
+ {"root":["../../src/server/app.ts","../../src/server/download.ts","../../src/server/extensions.ts","../../src/server/index.ts","../../src/server/main.ts","../../src/server/mounts.ts","../../src/server/workbench.ts"],"version":"5.6.2"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vscode/test-web",
3
- "version": "0.0.59",
3
+ "version": "0.0.61",
4
4
  "scripts": {
5
5
  "install-extensions": "npm i --prefix=fs-provider && npm i --prefix=sample",
6
6
  "compile": "tsc -b ./ && npm run compile-fs-provider",
@@ -24,8 +24,8 @@
24
24
  },
25
25
  "dependencies": {
26
26
  "@koa/cors": "^5.0.0",
27
- "@koa/router": "^13.0.0",
28
- "@playwright/browser-chromium": "^1.46.1",
27
+ "@koa/router": "^13.1.0",
28
+ "@playwright/browser-chromium": "^1.47.2",
29
29
  "glob": "^11.0.0",
30
30
  "gunzip-maybe": "^1.4.2",
31
31
  "http-proxy-agent": "^7.0.2",
@@ -35,13 +35,13 @@
35
35
  "koa-mount": "^4.0.0",
36
36
  "koa-static": "^5.0.0",
37
37
  "minimist": "^1.2.8",
38
- "playwright": "^1.46.1",
38
+ "playwright": "^1.47.2",
39
39
  "tar-fs": "^3.0.6",
40
40
  "vscode-uri": "^3.0.8"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@eslint/eslintrc": "^3.1.0",
44
- "@eslint/js": "^9.9.1",
44
+ "@eslint/js": "^9.11.1",
45
45
  "@types/gunzip-maybe": "^1.4.2",
46
46
  "@types/koa": "^2.15.0",
47
47
  "@types/koa__router": "^12.0.4",
@@ -51,11 +51,11 @@
51
51
  "@types/minimist": "^1.2.5",
52
52
  "@types/node": "^20.14.9",
53
53
  "@types/tar-fs": "^2.0.4",
54
- "@typescript-eslint/eslint-plugin": "^8.4.0",
55
- "@typescript-eslint/parser": "^8.4.0",
56
- "eslint": "^9.9.1",
54
+ "@typescript-eslint/eslint-plugin": "^8.7.0",
55
+ "@typescript-eslint/parser": "^8.7.0",
56
+ "eslint": "^9.11.1",
57
57
  "@tony.ganchev/eslint-plugin-header": "^3.1.2",
58
- "typescript": "^5.5.4"
58
+ "typescript": "^5.6.2"
59
59
  },
60
60
  "license": "MIT",
61
61
  "author": "Visual Studio Code Team",