mirror of
https://github.com/docker/actions-toolkit.git
synced 2024-11-23 03:16:09 +08:00
b03f6a405c
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
24 lines
578 B
TypeScript
24 lines
578 B
TypeScript
process.env = Object.assign({}, process.env, {
|
|
GITHUB_REPOSITORY: 'docker/test-docker-action',
|
|
GITHUB_RUN_ID: '123',
|
|
RUNNER_TEMP: '/tmp/github_runner',
|
|
RUNNER_TOOL_CACHE: '/tmp/github_tool_cache'
|
|
}) as {
|
|
[key: string]: string;
|
|
};
|
|
|
|
module.exports = {
|
|
clearMocks: true,
|
|
testEnvironment: 'node',
|
|
moduleFileExtensions: ['js', 'ts'],
|
|
setupFiles: ['dotenv/config'],
|
|
testMatch: ['**/*.test.ts'],
|
|
transform: {
|
|
'^.+\\.ts$': 'ts-jest'
|
|
},
|
|
moduleNameMapper: {
|
|
'^csv-parse/sync': '<rootDir>/node_modules/csv-parse/dist/cjs/sync.cjs'
|
|
},
|
|
verbose: true
|
|
};
|