Updated describe block for better logging

This commit is contained in:
jamelreid 2022-01-26 11:53:43 -05:00
parent cd8af3e2c4
commit a631454b91
1 changed files with 22 additions and 17 deletions

View File

@ -18,25 +18,30 @@ const { GITHUB_REPOSITORY, PLUGIN_NAME, GITHUB_TOKEN } = process.env;
let zipUrl; let zipUrl;
let pluginPath; let pluginPath;
utils.describeIf( GITHUB_REPOSITORY )( 'Upload and activate plugin', () => { utils.describeIf( GITHUB_REPOSITORY )(
beforeAll( async () => { `Upload and activate ${ PLUGIN_NAME } from ${ GITHUB_REPOSITORY }`,
zipUrl = await getLatestReleaseZipUrl( GITHUB_REPOSITORY, GITHUB_TOKEN ); () => {
beforeAll( async () => {
zipUrl = await getLatestReleaseZipUrl(
GITHUB_REPOSITORY,
GITHUB_TOKEN
);
pluginPath = await getRemotePluginZip( zipUrl, GITHUB_TOKEN ); pluginPath = await getRemotePluginZip( zipUrl, GITHUB_TOKEN );
await merchant.login(); await merchant.login();
}); } );
afterAll( async () => { afterAll( async () => {
await merchant.logout(); await merchant.logout();
}); } );
it( 'can upload and activate the provided plugin', async () => { it( 'can upload and activate the provided plugin', async () => {
await merchant.uploadAndActivatePlugin( pluginPath, PLUGIN_NAME ); await merchant.uploadAndActivatePlugin( pluginPath, PLUGIN_NAME );
}); } );
it( 'can remove downloaded plugin zip', async () => { it( 'can remove downloaded plugin zip', async () => {
await deleteDownloadedPluginFiles(); await deleteDownloadedPluginFiles();
} ); } );
}
}); );