From c859298dc339e4cc6dd605a5f05a3ada6c732618 Mon Sep 17 00:00:00 2001 From: CrazyMax <1951866+crazy-max@users.noreply.github.com> Date: Sun, 1 Mar 2026 11:16:40 +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 | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) rename jest.config.ts => jest.config.js (64%) diff --git a/jest.config.ts b/jest.config.js similarity index 64% rename from jest.config.ts rename to jest.config.js index 8e94b03..c51ed15 100644 --- a/jest.config.ts +++ b/jest.config.js @@ -1,17 +1,16 @@ -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-login-action-')).split(path.sep).join(path.posix.sep); +const tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), 'docker-login-action-')); process.env = Object.assign({}, process.env, { TEMP: tmpDir, GITHUB_REPOSITORY: 'docker/login-action', - RUNNER_TEMP: path.join(tmpDir, 'runner-temp').split(path.sep).join(path.posix.sep), - RUNNER_TOOL_CACHE: path.join(tmpDir, 'runner-tool-cache').split(path.sep).join(path.posix.sep) -}) as { - [key: string]: string; -}; + RUNNER_TEMP: path.join(tmpDir, 'runner-temp'), + RUNNER_TOOL_CACHE: path.join(tmpDir, 'runner-tool-cache') +}); module.exports = { clearMocks: true,