UNPKG

@testcontainers/gcloud

Version:
21 lines (20 loc) 863 B
import { AbstractStartedContainer, GenericContainer, StartedTestContainer } from "testcontainers"; export declare class BigQueryEmulatorContainer extends GenericContainer { private _projectId?; constructor(image: string); withProjectId(projectId: string): BigQueryEmulatorContainer; start(): Promise<StartedBigQueryEmulatorContainer>; } export declare class StartedBigQueryEmulatorContainer extends AbstractStartedContainer { private readonly projectId; constructor(startedTestContainer: StartedTestContainer, projectId: string); /** * @return a <code>http://host:port</code> pair corresponding to the address on which the emulator is * reachable from the test host machine. */ getEmulatorEndpoint(): string; /** * @returns the project ID associated with the emulator. */ getProjectId(): string; }