@coinbase/onchaintestkit
Version:
End-to-end testing toolkit for blockchain applications, powered by Playwright
32 lines (31 loc) • 786 B
TypeScript
/**
* Creates a cache directory for the test kit
*/
export declare function createCacheDir(name: string): Promise<string>;
/**
* Downloads a browser extension from a URL
*/
export declare function downloadExtension(params: {
extensionUrl: string;
cacheDir: string;
filename: string;
forceDownload?: boolean;
}): Promise<{
filePath: string;
fromCache: boolean;
}>;
/**
* Extracts a browser extension from a zip file
*/
export declare function extractExtension(params: {
zipFilePath: string;
forceExtract?: boolean;
}): Promise<{
extractedPath: string;
fromCache: boolean;
}>;
/**
* Sets up the MetaMask extension for testing
* Downloads and extracts the extension if needed
*/
export declare function downloadMetaMask(): Promise<string>;