@vscode/test-web 0.0.37 → 0.0.38

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/out/index.js +11 -1
  2. package/package.json +3 -3
package/out/index.js CHANGED
@@ -39,8 +39,14 @@ async function runTests(options) {
39
39
  const context = await openBrowser(endpoint, options);
40
40
  if (context) {
41
41
  context.once('close', () => server.close());
42
+ const unreportedOutput = [];
42
43
  await context.exposeFunction('codeAutomationLog', (type, args) => {
43
- console[type](...args);
44
+ try {
45
+ console[type](...args);
46
+ }
47
+ catch (_e) {
48
+ unreportedOutput.push({ type, args });
49
+ }
44
50
  });
45
51
  await context.exposeFunction('codeAutomationExit', async (code) => {
46
52
  try {
@@ -49,6 +55,10 @@ async function runTests(options) {
49
55
  catch (error) {
50
56
  console.error(`Error when closing browser: ${error}`);
51
57
  }
58
+ if (unreportedOutput.length) {
59
+ console.error(`There were ${unreportedOutput.length} messages that could not be reported to the console:`);
60
+ unreportedOutput.forEach(({ type, args }) => console[type](...args));
61
+ }
52
62
  server.close();
53
63
  if (code === 0) {
54
64
  s();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vscode/test-web",
3
- "version": "0.0.37",
3
+ "version": "0.0.38",
4
4
  "scripts": {
5
5
  "install-extensions": "yarn --cwd=fs-provider && yarn --cwd=sample",
6
6
  "compile": "tsc -p ./ && yarn compile-fs-provider",
@@ -30,7 +30,7 @@
30
30
  "koa-mount": "^4.0.0",
31
31
  "koa-static": "^5.0.0",
32
32
  "minimist": "^1.2.8",
33
- "playwright": "^1.32.1",
33
+ "playwright": "^1.32.2",
34
34
  "vscode-uri": "^3.0.7",
35
35
  "http-proxy-agent": "^5.0.0",
36
36
  "https-proxy-agent": "^5.0.1",
@@ -51,7 +51,7 @@
51
51
  "@types/decompress": "^4.2.4",
52
52
  "eslint": "^8.37.0",
53
53
  "eslint-plugin-header": "^3.1.1",
54
- "typescript": "^5.0.2"
54
+ "typescript": "^5.0.3"
55
55
  },
56
56
  "license": "MIT",
57
57
  "author": "Visual Studio Code Team",