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,9 +18,14 @@ const { GITHUB_REPOSITORY, PLUGIN_NAME, GITHUB_TOKEN } = process.env;
let zipUrl;
let pluginPath;
utils.describeIf( GITHUB_REPOSITORY )( 'Upload and activate plugin', () => {
utils.describeIf( GITHUB_REPOSITORY )(
`Upload and activate ${ PLUGIN_NAME } from ${ GITHUB_REPOSITORY }`,
() => {
beforeAll( async () => {
zipUrl = await getLatestReleaseZipUrl( GITHUB_REPOSITORY, GITHUB_TOKEN );
zipUrl = await getLatestReleaseZipUrl(
GITHUB_REPOSITORY,
GITHUB_TOKEN
);
pluginPath = await getRemotePluginZip( zipUrl, GITHUB_TOKEN );
@ -38,5 +43,5 @@ utils.describeIf( GITHUB_REPOSITORY )( 'Upload and activate plugin', () => {
it( 'can remove downloaded plugin zip', async () => {
await deleteDownloadedPluginFiles();
} );
});
}
);