Skip to content

Commit

Permalink
0.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
mmarkelov committed Apr 20, 2021
1 parent ff47ecc commit f09f75e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "jest-process-manager",
"description": "Starts a server before your Jest tests and tears it down after.",
"version": "0.3.0",
"version": "0.3.1",
"main": "lib/index.js",
"types": "src/types.d.ts",
"repository": "https://github.com/playwright-community/jest-process-manager",
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ export function getServers(): ChildProcess[] {
return servers
}

export async function teardown(command: string): Promise<void> {
export async function teardown(command?: string): Promise<void> {
if (servers.length) {
await Promise.all(servers.map(server => server.destroy()))
}
Expand Down
2 changes: 1 addition & 1 deletion src/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export declare class JestProcessManagerError extends Error {
}
export declare function setup(providedConfigs: JestProcessManagerOptions | JestProcessManagerOptions[]): Promise<void>;
export declare function getServers(): ChildProcess[];
export declare function teardown(): Promise<void>;
export declare function teardown(command?: string): Promise<void>;

export declare const ERROR_TIMEOUT = "ERROR_TIMEOUT";
export declare const ERROR_PORT_USED = "ERROR_PORT_USED";
Expand Down

0 comments on commit f09f75e

Please sign in to comment.