Skip to content

Commit 9aa03e9

Browse files
authored
test(types/index): add missing required dir option (#425)
1 parent 8110e89 commit 9aa03e9

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

types/index.test-d.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ import fastifyAutoloadCjsImport = require('..')
77
const fastifyAutoloadCjs = require('..')
88

99
const app: FastifyInstance = fastify()
10-
app.register(fastifyAutoloadNamed)
11-
app.register(fastifyAutoloadDefault)
12-
app.register(fastifyAutoloadCjs)
13-
app.register(fastifyAutoloadCjsImport.default)
14-
app.register(fastifyAutoloadCjsImport.fastifyAutoload)
15-
app.register(fastifyAutoloadStar.default)
16-
app.register(fastifyAutoloadStar.fastifyAutoload)
10+
app.register(fastifyAutoloadNamed, { dir: 'test' })
11+
app.register(fastifyAutoloadDefault, { dir: 'test' })
12+
app.register(fastifyAutoloadCjs, { dir: 'test' })
13+
app.register(fastifyAutoloadCjsImport.default, { dir: 'test' })
14+
app.register(fastifyAutoloadCjsImport.fastifyAutoload, { dir: 'test' })
15+
app.register(fastifyAutoloadStar.default, { dir: 'test' })
16+
app.register(fastifyAutoloadStar.fastifyAutoload, { dir: 'test' })
1717

1818
expectType<FastifyPluginCallback<AutoloadPluginOptions>>(fastifyAutoloadNamed)
1919
expectType<FastifyPluginCallback<AutoloadPluginOptions>>(fastifyAutoloadDefault)

0 commit comments

Comments
 (0)