setup-node/__tests__
Sergey Dolin 8170e22e8f
Detect cached folders from multiple directories (#735)
* Add project-dir

* Fix find lock file

* Remove package-dir input

* format & resolve conflicts

* Add unit tests

* build dist

* Apply change request fixes

* handle non-dir cache-dependency-path

* bump cache version

* run checks

* Handle globs in cacheDependencyPath

* refactor, introduce `cacheDependencyPathToProjectsDirectories`

it is necessary for the next PR related yarn optimization

* Changes requests

* Apply fixes

* review fixes

* add e2e

* Add unique

* review updates

* review updates second stage

* Review fixes 3

* imporve e2e tests
2023-06-21 17:52:17 +02:00
..
data Add and configure ESLint and update configuration for Prettier (#703) 2023-03-08 10:47:38 +02:00
mock Detect cached folders from multiple directories (#735) 2023-06-21 17:52:17 +02:00
README.md Add support for nightly and rc versions (#611) 2022-11-17 14:35:58 +01:00
authutil.test.ts Detect cached folders from multiple directories (#735) 2023-06-21 17:52:17 +02:00
cache-restore.test.ts Detect cached folders from multiple directories (#735) 2023-06-21 17:52:17 +02:00
cache-save.test.ts Detect cached folders from multiple directories (#735) 2023-06-21 17:52:17 +02:00
cache-utils.test.ts Detect cached folders from multiple directories (#735) 2023-06-21 17:52:17 +02:00
canary-installer.test.ts Add and configure ESLint and update configuration for Prettier (#703) 2023-03-08 10:47:38 +02:00
main.test.ts Add and configure ESLint and update configuration for Prettier (#703) 2023-03-08 10:47:38 +02:00
nightly-installer.test.ts bugfix: Don't attempt to use Windows fallbacks on non-Windows OSes (#718) 2023-04-11 09:31:41 +02:00
official-installer.test.ts Add and configure ESLint and update configuration for Prettier (#703) 2023-03-08 10:47:38 +02:00
prepare-subprojects.sh Detect cached folders from multiple directories (#735) 2023-06-21 17:52:17 +02:00
problem-matcher.test.ts Add and configure ESLint and update configuration for Prettier (#703) 2023-03-08 10:47:38 +02:00
rc-installer.test.ts Add and configure ESLint and update configuration for Prettier (#703) 2023-03-08 10:47:38 +02:00
verify-arch.sh Add e2e arch test 2020-12-09 13:28:47 -06:00
verify-node.sh Update tool-cache for download retries (#120) 2020-03-10 11:51:57 -04:00

README.md

Files located in data directory are used only for testing purposes.

Here the list of files in the data directory

  • .nvmrc, .tools-versions and package.json are used to test node-version-file logic
  • package-lock.json, pnpm-lock.yaml and yarn.lock are used to test cache logic
  • versions-manifest.json is used for unit testing to check downloading Node.js versions from the node-versions repository.
  • node-dist-index.json is used for unit testing to check downloading Node.js versions from the official site. The file was constructed from https://nodejs.org/dist/index.json
  • node-rc-index.json is used for unit testing to check downloading Node.js rc versions from the official site. The file was constructed from https://nodejs.org/download/rc/index.json
  • node-nightly-index.json is used for unit testing to check downloading Node.js nightly builds from the official site. The file was constructed from https://nodejs.org/download/nightly/index.json