import { expect, test } from 'tstyche' import fastify, { FastifyInstance } from '../../fastify.js' test("has 'Symbol.dispose' when declared with 'using'", async () => { await using app = fastify() expect(app).type.toBeAssignableTo() expect(app[Symbol.asyncDispose]).type.toBe<() => Promise>() }) test("has 'Symbol.dispose'", async () => { await using app = fastify() expect(app).type.toBeAssignableTo() expect(app[Symbol.asyncDispose]).type.toBe<() => Promise>() })