playwright 1.56.0-alpha-2025-08-29 → 1.56.0-alpha-1756505518000

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.
@@ -112,7 +112,7 @@ class FullConfigInternal {
112
112
  } else {
113
113
  this.webServers = [];
114
114
  }
115
- const projectConfigs = configCLIOverrides.projects || userConfig.projects || [userConfig];
115
+ const projectConfigs = configCLIOverrides.projects || userConfig.projects || [{ ...userConfig, workers: void 0 }];
116
116
  this.projects = projectConfigs.map((p) => new FullProjectInternal(configDir, userConfig, this, p, this.configCLIOverrides, packageJsonDir));
117
117
  resolveProjectDependencies(this.projects);
118
118
  this._assignUniqueProjectIds(this.projects);
@@ -25,6 +25,7 @@ __export(bundle_exports, {
25
25
  PingRequestSchema: () => PingRequestSchema,
26
26
  SSEServerTransport: () => SSEServerTransport,
27
27
  Server: () => Server,
28
+ StdioClientTransport: () => StdioClientTransport,
28
29
  StdioServerTransport: () => StdioServerTransport,
29
30
  StreamableHTTPClientTransport: () => StreamableHTTPClientTransport,
30
31
  StreamableHTTPServerTransport: () => StreamableHTTPServerTransport,
@@ -37,6 +38,7 @@ const zodToJsonSchema = bundle.zodToJsonSchema;
37
38
  const Client = bundle.Client;
38
39
  const Server = bundle.Server;
39
40
  const SSEServerTransport = bundle.SSEServerTransport;
41
+ const StdioClientTransport = bundle.StdioClientTransport;
40
42
  const StdioServerTransport = bundle.StdioServerTransport;
41
43
  const StreamableHTTPServerTransport = bundle.StreamableHTTPServerTransport;
42
44
  const StreamableHTTPClientTransport = bundle.StreamableHTTPClientTransport;
@@ -54,6 +56,7 @@ const z = bundle.z;
54
56
  PingRequestSchema,
55
57
  SSEServerTransport,
56
58
  Server,
59
+ StdioClientTransport,
57
60
  StdioServerTransport,
58
61
  StreamableHTTPClientTransport,
59
62
  StreamableHTTPServerTransport,
@@ -56,11 +56,7 @@ class TestServerBackend {
56
56
  if (!tool)
57
57
  throw new Error(`Tool not found: ${name}. Available tools: ${this._tools.map((tool2) => tool2.schema.name).join(", ")}`);
58
58
  const parsedArguments = tool.schema.inputSchema.parse(args || {});
59
- const result = await tool.handle(this._context, parsedArguments);
60
- const stdio = this._context.takeStdio();
61
- if (stdio.trim())
62
- result.content.push({ type: "text", text: stdio });
63
- return result;
59
+ return await tool.handle(this._context, parsedArguments);
64
60
  }
65
61
  serverClosed() {
66
62
  void this._context.close();
@@ -24,7 +24,6 @@ module.exports = __toCommonJS(context_exports);
24
24
  var import_testRunner = require("../../runner/testRunner");
25
25
  class Context {
26
26
  constructor(configLocation, options) {
27
- this._stdio = [];
28
27
  this.configLocation = configLocation;
29
28
  this.options = options;
30
29
  }
@@ -32,13 +31,7 @@ class Context {
32
31
  if (this._testRunner)
33
32
  await this._testRunner.stopTests();
34
33
  const testRunner = new import_testRunner.TestRunner(this.configLocation, {});
35
- await testRunner.initialize({
36
- sendStdioEvents: true,
37
- muteConsole: this.options?.muteConsole
38
- });
39
- testRunner.on(import_testRunner.TestRunnerEvent.StdioChunk, (chunk, stdio) => {
40
- this._stdio.push({ chunk, stdio });
41
- });
34
+ await testRunner.initialize({});
42
35
  this._testRunner = testRunner;
43
36
  testRunner.on(import_testRunner.TestRunnerEvent.TestFilesChanged, (testFiles) => {
44
37
  this._testRunner?.emit(import_testRunner.TestRunnerEvent.TestFilesChanged, testFiles);
@@ -46,19 +39,9 @@ class Context {
46
39
  this._testRunner = testRunner;
47
40
  return testRunner;
48
41
  }
49
- takeStdio() {
50
- const text = this._stdio.map((entry) => chunkToPayload(entry.stdio, entry.chunk)).join("\n");
51
- this._stdio = [];
52
- return text;
53
- }
54
42
  async close() {
55
43
  }
56
44
  }
57
- function chunkToPayload(type, chunk) {
58
- if (chunk instanceof Uint8Array)
59
- return "<binary>";
60
- return `[${type}] ${chunk}`;
61
- }
62
45
  // Annotate the CommonJS export names for ESM import in node:
63
46
  0 && (module.exports = {
64
47
  Context