Download wp-calypso/test/e2e/specs/shared/index.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 568 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/test/e2e/specs/shared/index.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/test/e2e/specs/shared/index.ts
-
curl -L -o index.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/test/e2e/specs/shared/index.ts
568 Bytes
| export * from './api-close-account'; | |
| export * from './api-delete-site'; | |
| /** | |
| * This is a fix for e2e test that was deployed on Christmas eve as an emergency fix. Please remove and fix the root cause. | |
| * @param callback the attempt callback | |
| * @param retries number of retries. | |
| */ | |
| export async function fixme_retry( callback: () => unknown, retries: number = 5 ) { | |
| let count = retries; | |
| while ( count-- ) { | |
| try { | |
| return await callback(); | |
| } catch ( e ) { | |
| if ( ! --count ) { | |
| throw e; | |
| } | |
| await new Promise( ( r ) => setTimeout( r, 1000 ) ); | |
| } | |
| } | |
| } | |