Skip to content

Commit 24f3159

Browse files
committed
update jest config since 30.0
Signed-off-by: CrazyMax <[email protected]>
1 parent c827c79 commit 24f3159

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

jest.config.ts renamed to jest.config.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
import fs from 'fs';
2-
import os from 'os';
3-
import path from 'path';
1+
/* eslint-disable @typescript-eslint/no-require-imports */
2+
const fs = require('fs');
3+
const os = require('os');
4+
const path = require('path');
45

56
const tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), 'docker-setup-compose-action-')).split(path.sep).join(path.posix.sep);
67

@@ -9,12 +10,11 @@ process.env = Object.assign({}, process.env, {
910
GITHUB_REPOSITORY: 'docker/setup-compose-action',
1011
RUNNER_TEMP: path.join(tmpDir, 'runner-temp').split(path.sep).join(path.posix.sep),
1112
RUNNER_TOOL_CACHE: path.join(tmpDir, 'runner-tool-cache').split(path.sep).join(path.posix.sep)
12-
}) as {
13-
[key: string]: string;
14-
};
13+
});
1514

1615
module.exports = {
1716
clearMocks: true,
17+
testEnvironment: 'node',
1818
moduleFileExtensions: ['js', 'ts'],
1919
testMatch: ['**/*.test.ts'],
2020
transform: {

0 commit comments

Comments
 (0)