actions-toolkit/jest.config.ts
CrazyMax b03f6a405c
github: add serverURL annd provenanceBuilderID
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2023-01-25 03:20:18 +01:00

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
};