From 9aa03e9a785fbee635eef86194afc3a16cbbb848 Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Wed, 4 Dec 2024 13:00:50 +0000 Subject: [PATCH] test(types/index): add missing required `dir` option (#425) --- types/index.test-d.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/types/index.test-d.ts b/types/index.test-d.ts index b376ade..80b0584 100644 --- a/types/index.test-d.ts +++ b/types/index.test-d.ts @@ -7,13 +7,13 @@ import fastifyAutoloadCjsImport = require('..') const fastifyAutoloadCjs = require('..') const app: FastifyInstance = fastify() -app.register(fastifyAutoloadNamed) -app.register(fastifyAutoloadDefault) -app.register(fastifyAutoloadCjs) -app.register(fastifyAutoloadCjsImport.default) -app.register(fastifyAutoloadCjsImport.fastifyAutoload) -app.register(fastifyAutoloadStar.default) -app.register(fastifyAutoloadStar.fastifyAutoload) +app.register(fastifyAutoloadNamed, { dir: 'test' }) +app.register(fastifyAutoloadDefault, { dir: 'test' }) +app.register(fastifyAutoloadCjs, { dir: 'test' }) +app.register(fastifyAutoloadCjsImport.default, { dir: 'test' }) +app.register(fastifyAutoloadCjsImport.fastifyAutoload, { dir: 'test' }) +app.register(fastifyAutoloadStar.default, { dir: 'test' }) +app.register(fastifyAutoloadStar.fastifyAutoload, { dir: 'test' }) expectType>(fastifyAutoloadNamed) expectType>(fastifyAutoloadDefault)