rwsdk
Version:
Build fast, server-driven webapps on Cloudflare with SSR, RSC, and realtime
22 lines (21 loc) • 1.03 kB
text/typescript
import { $expect, deleteD1Database, deleteWorker, isRelatedToTest, listD1Databases } from "../../lib/e2e/release.mjs";
import { TestResources } from "./types.mjs";
export { $expect, deleteD1Database, deleteWorker, isRelatedToTest, listD1Databases, };
/**
* Run the release command to deploy to Cloudflare
*/
export declare function runRelease(cwd: string, projectDir: string, resourceUniqueKey: string): Promise<{
url: string;
workerName: string;
}>;
/**
* Run the local preview server (build + preview) and return the URL
*/
export declare function runPreviewServer(packageManager?: string, cwd?: string): Promise<{
url: string;
stopPreview: () => Promise<void>;
}>;
/**
* Runs tests against the production deployment
*/
export declare function runReleaseTest(artifactDir: string, resources: TestResources, browserPath?: string, headless?: boolean, bail?: boolean, skipClient?: boolean, projectDir?: string, realtime?: boolean, skipHmr?: boolean, skipStyleTests?: boolean, ci?: boolean): Promise<void>;