From 539653d6fd7de684327dd8bb85880c8f559dc287 Mon Sep 17 00:00:00 2001 From: CrazyMax <1951866+crazy-max@users.noreply.github.com> Date: Thu, 29 Jan 2026 18:09:24 +0100 Subject: [PATCH] map @actions/core to real entrypoint in Jest configs Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com> --- jest.config.cjs | 3 ++- jest.config.itg.cjs | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/jest.config.cjs b/jest.config.cjs index b9a0d32..ad98e56 100644 --- a/jest.config.cjs +++ b/jest.config.cjs @@ -46,8 +46,9 @@ module.exports = { } ] }, - transformIgnorePatterns: ['/node_modules/(?!(?:@actions/exec|@actions/github|@actions/http-client|@actions/io|@octokit|universal-user-agent|before-after-hook)/)'], + transformIgnorePatterns: ['/node_modules/(?!(?:@actions/core|@actions/exec|@actions/github|@actions/http-client|@actions/io|@octokit|universal-user-agent|before-after-hook)/)'], moduleNameMapper: { + '^@actions/core': '/node_modules/@actions/core/lib/core.js', '^@actions/exec$': '/node_modules/@actions/exec/lib/exec.js', '^@actions/github$': '/node_modules/@actions/github/lib/github.js', '^@actions/http-client$': '/node_modules/@actions/http-client/lib/index.js', diff --git a/jest.config.itg.cjs b/jest.config.itg.cjs index 61de7ed..4f05b2e 100644 --- a/jest.config.itg.cjs +++ b/jest.config.itg.cjs @@ -29,8 +29,9 @@ module.exports = { } ] }, - transformIgnorePatterns: ['/node_modules/(?!(?:@actions/exec|@actions/github|@actions/http-client|@actions/io|@octokit|universal-user-agent|before-after-hook)/)'], + transformIgnorePatterns: ['/node_modules/(?!(?:@actions/core|@actions/exec|@actions/github|@actions/http-client|@actions/io|@octokit|universal-user-agent|before-after-hook)/)'], moduleNameMapper: { + '^@actions/core': '/node_modules/@actions/core/lib/core.js', '^@actions/exec$': '/node_modules/@actions/exec/lib/exec.js', '^@actions/github$': '/node_modules/@actions/github/lib/github.js', '^@actions/http-client$': '/node_modules/@actions/http-client/lib/index.js',