Skip to content

Commit d636a41

Browse files
committed
update jest config since 30.0
Signed-off-by: CrazyMax <[email protected]>
1 parent 9c747a7 commit d636a41

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

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

Lines changed: 5 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-metadata-action-'));
67

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

1615
module.exports = {
1716
clearMocks: true,

0 commit comments

Comments
 (0)