setup-node/jest.config.js
Muhammad Yusuf 88efa6885c Refactor github mock to use Context class
Co-Authored-By: Claude <noreply@anthropic.com>
2026-06-04 12:02:13 +08:00

14 lines
329 B
JavaScript

module.exports = {
clearMocks: true,
moduleFileExtensions: ['js', 'ts'],
testEnvironment: 'node',
testMatch: ['**/*.test.ts'],
testRunner: 'jest-circus/runner',
transform: {
'^.+\\.ts$': 'ts-jest'
},
verbose: true,
moduleNameMapper: {
'^@actions/github$': '<rootDir>/__tests__/mock/github-mock.ts'
}
}