From d636a41a2f216ca80795f851da4d4b32e14846f3 Mon Sep 17 00:00:00 2001 From: CrazyMax <1951866+crazy-max@users.noreply.github.com> Date: Mon, 5 Jan 2026 16:54:39 +0100 Subject: [PATCH] update jest config since 30.0 Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com> --- jest.config.ts => jest.config.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) rename jest.config.ts => jest.config.js (84%) diff --git a/jest.config.ts b/jest.config.js similarity index 84% rename from jest.config.ts rename to jest.config.js index 2973e9d..1c30b54 100644 --- a/jest.config.ts +++ b/jest.config.js @@ -1,6 +1,7 @@ -import fs from 'fs'; -import os from 'os'; -import path from 'path'; +/* eslint-disable @typescript-eslint/no-require-imports */ +const fs = require('fs'); +const os = require('os'); +const path = require('path'); const tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), 'docker-metadata-action-')); @@ -9,9 +10,7 @@ process.env = Object.assign({}, process.env, { GITHUB_REPOSITORY: 'docker/metadata-action', RUNNER_TEMP: path.join(tmpDir, 'runner-temp'), RUNNER_TOOL_CACHE: path.join(tmpDir, 'runner-tool-cache') -}) as { - [key: string]: string; -}; +}); module.exports = { clearMocks: true,