From f5cce78df4df6ee6b3517390424195989b0ebcc0 Mon Sep 17 00:00:00 2001 From: darkgl0w <31093081+darkgl0w@users.noreply.github.com> Date: Tue, 1 Mar 2022 10:30:13 +0100 Subject: [PATCH 1/2] fix (test): drop deprecated tap method and add `.vscode` folder to match `fastify-cli` template --- test.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test.js b/test.js index af439e8..cb89125 100644 --- a/test.js +++ b/test.js @@ -6,11 +6,12 @@ const { mkdtempSync, readdirSync } = require('fs') const { tmpdir } = require('os') const { spawnSync } = require('child_process') -test('generates a fastify project in the current folder', async ({ same, is }) => { +test('generates a fastify project in the current folder', async ({ equal, match }) => { const dir = mkdtempSync(join(tmpdir(), 'create-fastify-test')) spawnSync('node', [join(__dirname, 'cmd.js')], { cwd: dir }) - same(readdirSync(dir).sort(), [ + match(readdirSync(dir).sort(), [ '.gitignore', + '.vscode', 'README.md', 'app.js', 'package.json', @@ -19,5 +20,5 @@ test('generates a fastify project in the current folder', async ({ same, is }) = 'test' ]) const { name } = require(join(dir, 'package.json')) - is(name.toLowerCase(), basename(dir).toLowerCase()) + equal(name.toLowerCase(), basename(dir).toLowerCase()) }) From 7db9f3a6b8f6305a8966582bae926d0e2ff11c36 Mon Sep 17 00:00:00 2001 From: darkgl0w <31093081+darkgl0w@users.noreply.github.com> Date: Tue, 1 Mar 2022 10:31:18 +0100 Subject: [PATCH 2/2] chore: upgrade package dependencies --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 2d9f7ce..406b9c7 100644 --- a/package.json +++ b/package.json @@ -20,11 +20,11 @@ "author": "David Mark Clements (@davidmarkclem)", "license": "MIT", "dependencies": { - "fastify-cli": "^2.2.0" + "fastify-cli": "^2.15.0" }, "devDependencies": { - "standard": "^16.0.3", - "tap": "^15.0.9" + "standard": "^16.0.4", + "tap": "^15.1.6" }, "repository": { "type": "git",