UNPKG

@fastify/autoload

Version:
10 lines (8 loc) 392 B
// This folder is not used directly by the test, but in the previous implementation, the last hook used would affect the outcome. // This folder ensures that the test fails if the fix is reverted or modified incorrectly. const pluginRegister = async (fastify) => { fastify.addHook('onRequest', async (request) => { request.hooksUsed.push('second') }) } export default pluginRegister