From ec95a9b1146f8d41234b97fc286b96b83f6c6cea Mon Sep 17 00:00:00 2001 From: Lovepreet Singh Date: Thu, 14 Jul 2022 07:50:44 +0000 Subject: [PATCH] Fix failing resolvePaths testcase --- packages/cache/__tests__/cacheUtils.test.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/cache/__tests__/cacheUtils.test.ts b/packages/cache/__tests__/cacheUtils.test.ts index 50486511..1cd641f5 100644 --- a/packages/cache/__tests__/cacheUtils.test.ts +++ b/packages/cache/__tests__/cacheUtils.test.ts @@ -1,5 +1,6 @@ import {promises as fs} from 'fs' import * as path from 'path' +import { coerce } from 'semver' import * as cacheUtils from '../src/internal/cacheUtils' test('getArchiveFileSizeInBytes returns file size', () => { @@ -34,6 +35,6 @@ test('assertDefined returns value', () => { }) test('resolvePaths works on current directory', async () => { - const resolvedPath = await cacheUtils.resolvePaths(['.']) - expect(resolvedPath).toStrictEqual(['.']) + const paths = await cacheUtils.resolvePaths(['.']) + expect(paths).toContain('.') })