mirror of
https://github.com/claude-did-this/claude-hub.git
synced 2026-02-14 19:30:02 +01:00
- Remove unnecessary conditional checks in githubController.ts that caused TypeScript lint warnings - Fix ESLint configuration to properly handle mixed JavaScript and TypeScript test files - Update Jest configuration to remove deprecated isolatedModules option - Add isolatedModules: true to tsconfig.json as recommended by ts-jest - Ensure all tests pass and build succeeds 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
33 lines
936 B
JavaScript
33 lines
936 B
JavaScript
module.exports = {
|
|
preset: 'ts-jest',
|
|
testEnvironment: 'node',
|
|
setupFiles: ['<rootDir>/test/setup.js'],
|
|
testMatch: [
|
|
'**/test/unit/**/*.test.{js,ts}',
|
|
'**/test/integration/**/*.test.{js,ts}',
|
|
'**/test/e2e/scenarios/**/*.test.{js,ts}'
|
|
],
|
|
transform: {
|
|
'^.+\\.ts$': 'ts-jest',
|
|
'^.+\\.js$': 'babel-jest'
|
|
},
|
|
moduleFileExtensions: ['ts', 'js', 'json'],
|
|
transformIgnorePatterns: [
|
|
'node_modules/(?!(universal-user-agent|@octokit|before-after-hook)/)'
|
|
],
|
|
collectCoverage: true,
|
|
coverageReporters: ['text', 'lcov'],
|
|
coverageDirectory: 'coverage',
|
|
collectCoverageFrom: [
|
|
'src/**/*.{js,ts}',
|
|
'!src/**/*.d.ts',
|
|
'!**/node_modules/**',
|
|
'!**/dist/**'
|
|
],
|
|
testTimeout: 30000, // Some tests might take longer due to container initialization
|
|
verbose: true,
|
|
reporters: [
|
|
'default',
|
|
['jest-junit', { outputDirectory: 'test-results/jest', outputName: 'results.xml' }]
|
|
]
|
|
}; |