Skip to content

Commit 0b56e17

Browse files
committed
Report worker thread count from runCLI()
1 parent 9262f1f commit 0b56e17

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/playground/cli/src/run-cli.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,8 @@ export interface RunCLIServer extends AsyncDisposable {
336336
playground: RemoteAPI<PlaygroundCliWorker>;
337337
server: Server;
338338
[Symbol.asyncDispose](): Promise<void>;
339+
// Expose the number of worker threads to the test runner.
340+
workerThreadCount: number;
339341
}
340342

341343
export async function runCLI(args: RunCLIArgs): Promise<RunCLIServer> {
@@ -565,6 +567,7 @@ export async function runCLI(args: RunCLIArgs): Promise<RunCLIServer> {
565567
);
566568
await new Promise((resolve) => server.close(resolve));
567569
},
570+
workerThreadCount: totalWorkerCount,
568571
};
569572
} catch (error) {
570573
if (!args.debug) {

0 commit comments

Comments
 (0)