Skip to content
This repository was archived by the owner on Sep 11, 2025. It is now read-only.

Commit f09f75e

Browse files
committed
0.3.1
1 parent ff47ecc commit f09f75e

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "jest-process-manager",
33
"description": "Starts a server before your Jest tests and tears it down after.",
4-
"version": "0.3.0",
4+
"version": "0.3.1",
55
"main": "lib/index.js",
66
"types": "src/types.d.ts",
77
"repository": "https://github.com/playwright-community/jest-process-manager",

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ export function getServers(): ChildProcess[] {
266266
return servers
267267
}
268268

269-
export async function teardown(command: string): Promise<void> {
269+
export async function teardown(command?: string): Promise<void> {
270270
if (servers.length) {
271271
await Promise.all(servers.map(server => server.destroy()))
272272
}

src/types.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ export declare class JestProcessManagerError extends Error {
131131
}
132132
export declare function setup(providedConfigs: JestProcessManagerOptions | JestProcessManagerOptions[]): Promise<void>;
133133
export declare function getServers(): ChildProcess[];
134-
export declare function teardown(): Promise<void>;
134+
export declare function teardown(command?: string): Promise<void>;
135135

136136
export declare const ERROR_TIMEOUT = "ERROR_TIMEOUT";
137137
export declare const ERROR_PORT_USED = "ERROR_PORT_USED";

0 commit comments

Comments
 (0)