toolkit
toolkit copied to clipboard
Consistent naming for utils and utilising shared folder
Reason for doing this is to standardise the approach for having shared utils or the naming across the files.
This pull request includes several changes to update import paths across multiple test and source files. The primary change is renaming the import path from util to utils in various files within the packages/artifact and packages/cache directories.
Changes to utility imports:
-
Updated import statements to use
utilsinstead ofutilin multiple test files:packages/artifact/__tests__/delete-artifacts.test.tspackages/artifact/__tests__/download-artifact.test.tspackages/artifact/__tests__/get-artifact.test.tspackages/artifact/__tests__/list-artifacts.test.tspackages/artifact/__tests__/upload-artifact.test.tspackages/artifact/__tests__/utils.test.ts
-
Updated import statements to use
utilsinstead ofutilin source files:packages/artifact/src/internal/delete/delete-artifact.tspackages/artifact/src/internal/download/download-artifact.tspackages/artifact/src/internal/find/get-artifact.tspackages/artifact/src/internal/find/list-artifacts.tspackages/artifact/src/internal/shared/artifact-twirp-client.tspackages/artifact/src/internal/upload/upload-artifact.ts
Changes to cache utilities:
- Updated import statements to use
shared/utilsinstead ofcacheUtilsin cache-related test files:packages/cache/__tests__/cacheHttpClient.test.tspackages/cache/__tests__/cacheUtils.test.tspackages/cache/__tests__/downloadUtils.test.tspackages/cache/__tests__/requestUtils.test.tspackages/cache/__tests__/restoreCache.test.ts[1] [2]packages/cache/__tests__/restoreCacheV2.test.ts[1] [2]packages/cache/__tests__/saveCache.test.ts[1] [2] [3]