mirror of
https://github.com/docker/actions-toolkit.git
synced 2024-11-23 03:16:09 +08:00
aae4a2d7bc
- Use classes - Split buildx/builder modules - Additional tests Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
23 lines
554 B
TypeScript
23 lines
554 B
TypeScript
process.env = Object.assign({}, process.env, {
|
|
GITHUB_REPOSITORY: 'docker/test-docker-action',
|
|
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
|
|
};
|