From a998d451a89b2bf141fb024354417a765f2ce0eb Mon Sep 17 00:00:00 2001 From: Sami Al-Dury Date: Mon, 12 Feb 2024 16:04:00 +0100 Subject: [PATCH] fix: add missing `c8` dev dependency (#704) * fix: add missing `c8` dev dependency * chore: lint --- generate.js | 1 + test/generate-typescript.test.js | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/generate.js b/generate.js index 2d36b9a6..d05c5e39 100755 --- a/generate.js +++ b/generate.js @@ -63,6 +63,7 @@ const typescriptTemplate = { }, devDependencies: { '@types/node': cliPkg.devDependencies['@types/node'], + c8: cliPkg.devDependencies.c8, 'ts-node': cliPkg.devDependencies['ts-node'], concurrently: cliPkg.devDependencies.concurrently, 'fastify-tsconfig': cliPkg.devDependencies['fastify-tsconfig'], diff --git a/test/generate-typescript.test.js b/test/generate-typescript.test.js index bb027976..5535b1ac 100644 --- a/test/generate-typescript.test.js +++ b/test/generate-typescript.test.js @@ -101,7 +101,7 @@ function define (t) { }) test('should finish successfully with typescript template', async (t) => { - t.plan(24 + Object.keys(expected).length) + t.plan(25 + Object.keys(expected).length) try { await generate(workdir, typescriptTemplate) await verifyPkg(t) @@ -138,6 +138,7 @@ function define (t) { t.equal(pkg.dependencies['@fastify/autoload'], cliPkg.devDependencies['@fastify/autoload']) t.equal(pkg.dependencies['@fastify/sensible'], cliPkg.devDependencies['@fastify/sensible']) t.equal(pkg.devDependencies['@types/node'], cliPkg.devDependencies['@types/node']) + t.equal(pkg.devDependencies.c8, cliPkg.devDependencies.c8) t.equal(pkg.devDependencies['ts-node'], cliPkg.devDependencies['ts-node']) t.equal(pkg.devDependencies.concurrently, cliPkg.devDependencies.concurrently) t.equal(pkg.devDependencies.typescript, cliPkg.devDependencies.typescript)