From 24f3159974077285360081e527c0530411a79abe Mon Sep 17 00:00:00 2001 From: CrazyMax <1951866+crazy-max@users.noreply.github.com> Date: Thu, 29 Jan 2026 16:35:10 +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 | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) rename jest.config.ts => jest.config.js (82%) diff --git a/jest.config.ts b/jest.config.js similarity index 82% rename from jest.config.ts rename to jest.config.js index b0e878d..a513a96 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-setup-compose-action-')).split(path.sep).join(path.posix.sep); @@ -9,12 +10,11 @@ process.env = Object.assign({}, process.env, { GITHUB_REPOSITORY: 'docker/setup-compose-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; -}; +}); module.exports = { clearMocks: true, + testEnvironment: 'node', moduleFileExtensions: ['js', 'ts'], testMatch: ['**/*.test.ts'], transform: {