mirror of
https://github.com/actions/cache.git
synced 2026-06-06 17:14:21 +00:00
feat: add path validation options to restore action
This commit is contained in:
parent
27d5ce7f10
commit
dabc4c2ca1
25 changed files with 201047 additions and 164350 deletions
|
|
@ -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
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue