From b3608becf8d5c9bedd5ce7f3c55c177e585eb291 Mon Sep 17 00:00:00 2001 From: Colin McDonnell Date: Wed, 23 Aug 2023 11:28:30 -0700 Subject: [PATCH] Type decl --- test/index.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/index.spec.ts b/test/index.spec.ts index d94d34d..3a2fe10 100644 --- a/test/index.spec.ts +++ b/test/index.spec.ts @@ -3,7 +3,7 @@ import convert from '../src' describe('NPM tests', () => { - const tests = [ + const tests: [npm: string, yarn: string, pnpm: string, bun: string][] = [ // install ['npm install', 'yarn install', 'pnpm install', 'bun install'], ['npm i', 'yarn install', 'pnpm i', 'bun install'], @@ -316,7 +316,7 @@ describe('NPM tests', () => { 'pnpm pack --pack-destination foobar', "npm pack --pack-destination foobar\n# couldn't auto-convert command", ], - ] as [string, string, string, string][] + ]; describe('to Yarn', () => { it.each(tests)('%s', (npmValue, yarnValue) => {