[ftr] label global hooks which tie into lifecycle service (#118949)

This commit is contained in:
Spencer 2021-11-17 14:46:27 -08:00 committed by GitHub
parent 77acb68973
commit dfa856eb4c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -57,7 +57,7 @@ export function decorateMochaUi(log, lifecycle, context, { isDockerGroup, rootTa
}
argumentsList[1] = function () {
before(async () => {
before('beforeTestSuite.trigger', async () => {
await lifecycle.beforeTestSuite.trigger(this);
});
@ -87,7 +87,7 @@ export function decorateMochaUi(log, lifecycle, context, { isDockerGroup, rootTa
provider.call(this);
after(async () => {
after('afterTestSuite.trigger', async () => {
await lifecycle.afterTestSuite.trigger(this);
});
};