@vscode/test-web 0.0.47 → 0.0.49

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/README.md CHANGED
@@ -31,12 +31,20 @@ vscode-test-web --browserType=chromium --extensionDevelopmentPath=$extensionLoca
31
31
 
32
32
  Open VS Code in the Browser on a folder with test data from the local disk:
33
33
 
34
- ```
34
+ ```sh
35
35
  vscode-test-web --browserType=chromium --extensionDevelopmentPath=$extensionLocation $testDataLocation
36
36
  ```
37
37
 
38
38
  VS Code for the Web will open on a virtual workspace (scheme `vscode-test-web`), backed by a file system provider that gets the file/folder data from the local disk. Changes to the file system are kept in memory and are not written back to disk.
39
39
 
40
+ Open VS Code in the Browser with external network access:
41
+
42
+ ```sh
43
+ vscode-test-web --browserType=chromium --browserOption=--disable-web-security extensionDevelopmentPath=$extensionLocation
44
+ ```
45
+
46
+ This allows the extension being tested to make network requests to external hosts.
47
+
40
48
  Via API:
41
49
 
42
50
  ```ts
@@ -68,6 +76,7 @@ CLI options:
68
76
  |Option|Argument Description|
69
77
  |-----|-----|
70
78
  | --browser | The browser to launch: `chromium` (default), `firefox`, `webkit` or `none`. |
79
+ | --browserOption | Command line argument to use when launching the browser instance. Argument can be provided multiple times. |
71
80
  | --extensionDevelopmentPath | A path pointing to an extension under development to include. |
72
81
  | --extensionTestsPath | A path to a test module to run. |
73
82
  | --quality | `insiders` (default), or `stable`. Ignored when sourcesPath is provided. |
@@ -90,13 +99,13 @@ Corresponding options are available in the API.
90
99
 
91
100
  ## Development
92
101
 
93
- - `yarn && yarn install-extensions`
102
+ - `npm i && npm run install-extensions`
94
103
  - Make necessary changes in [`src`](./src)
95
- - `yarn compile` (or `yarn watch`)
104
+ - `npm run compile` (or `npm run watch`)
96
105
 
97
- - run `yarn sample` to launch VS Code Browser with the `sample` extension bundled in this repo.
106
+ - run `npm run sample` to launch VS Code Browser with the `sample` extension bundled in this repo.
98
107
 
99
- - run `yarn sample-tests` to launch VS Code Browser running the extension tests of the `sample` extension bundled in this repo.
108
+ - run `npm run sample-tests` to launch VS Code Browser running the extension tests of the `sample` extension bundled in this repo.
100
109
 
101
110
 
102
111
  ## License