feat: add path validation options to restore action

This commit is contained in:
Jason Ginchereau 2026-05-18 12:28:44 -10:00
parent 27d5ce7f10
commit dabc4c2ca1
25 changed files with 201047 additions and 164350 deletions

View file

@ -9,6 +9,13 @@ module.exports = {
transform: {
"^.+\\.ts$": "ts-jest"
},
// The @actions/cache toolkit (v6+) is ESM-only and cannot be loaded by
// Jest's CommonJS resolver. For unit tests we redirect imports to a
// local CJS-compatible stub that exposes the same surface; production
// builds (tsc + ncc) use the real ESM package directly.
moduleNameMapper: {
"^@actions/cache$": "<rootDir>/__tests__/__mocks__/actions-cache.ts"
},
verbose: true
};