2023-02-21 10:06:17 +01:00
|
|
|
import fs from 'fs';
|
|
|
|
import os from 'os';
|
|
|
|
import path from 'path';
|
|
|
|
|
|
|
|
const tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), 'docker-login-action-')).split(path.sep).join(path.posix.sep);
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
|
2020-08-21 14:45:16 +02:00
|
|
|
module.exports = {
|
|
|
|
clearMocks: true,
|
|
|
|
moduleFileExtensions: ['js', 'ts'],
|
|
|
|
testMatch: ['**/*.test.ts'],
|
|
|
|
transform: {
|
|
|
|
'^.+\\.ts$': 'ts-jest'
|
|
|
|
},
|
2023-02-21 10:06:17 +01:00
|
|
|
moduleNameMapper: {
|
|
|
|
'^csv-parse/sync': '<rootDir>/node_modules/csv-parse/dist/cjs/sync.cjs'
|
|
|
|
},
|
|
|
|
collectCoverageFrom: ['src/**/{!(main.ts),}.ts'],
|
|
|
|
coveragePathIgnorePatterns: ['lib/', 'node_modules/', '__tests__/'],
|
2022-03-21 10:57:36 +01:00
|
|
|
verbose: true
|
2023-02-21 10:06:17 +01:00
|
|
|
};
|