diff --git a/packages/core/src/hookable.js b/packages/core/src/hookable.js index 10c94eb180..6ccf4e2762 100644 --- a/packages/core/src/hookable.js +++ b/packages/core/src/hookable.js @@ -30,7 +30,7 @@ export default class Hookable { if (!this._hooks[name]) { return } - consola.debug(`Call ${name} hooks (${this._hooks[name].length})`) + try { await sequence(this._hooks[name], fn => fn(...args)) } catch (err) { diff --git a/packages/core/test/hookable.test.js b/packages/core/test/hookable.test.js index 6d8305444e..f1db00f7b5 100644 --- a/packages/core/test/hookable.test.js +++ b/packages/core/test/hookable.test.js @@ -64,7 +64,6 @@ describe('core: hookable', () => { await hook.callHook('test:hook') - expect(consola.debug).toBeCalledWith('Call test:hook hooks (1)') expect(consola.log).toBeCalledWith('test:hook called') })