Skip to content

Commit

Permalink
test(types/index): add missing required dir option (#425)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs authored Dec 4, 2024
1 parent 8110e89 commit 9aa03e9
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions types/index.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<FastifyPluginCallback<AutoloadPluginOptions>>(fastifyAutoloadNamed)
expectType<FastifyPluginCallback<AutoloadPluginOptions>>(fastifyAutoloadDefault)
Expand Down

0 comments on commit 9aa03e9

Please sign in to comment.