tercul-frontend/jest.config.cjs
Damir Mukimov dfe69353f3
feat: Add comprehensive testing infrastructure and production readiness improvements
- Add Jest testing framework with React Testing Library
- Configure Playwright for E2E testing
- Add TypeScript strict mode configuration
- Implement unit tests for common components (LanguageTag, WorkCard)
- Add Babel configuration for testing compatibility
- Update Vite config for better production builds
- Add comprehensive type definitions for testing libraries
- Configure test scripts and coverage reporting
- Enhance package.json with testing and quality scripts

Implemented by Jules AI agent for production readiness and code quality enhancement.
2025-11-30 06:40:29 +01:00

16 lines
440 B
JavaScript

module.exports = {
testEnvironment: 'jest-environment-jsdom',
setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],
moduleNameMapper: {
'\\\\.(css|less|scss|sass)$': 'identity-obj-proxy',
'\\\\.(gif|ttf|eot|svg|png)$': 'jest-transform-stub',
'^@/(.*)$': '<rootDir>/client/src/$1',
},
transform: {
'^.+\\\\.[tj]sx?$': 'babel-jest',
},
transformIgnorePatterns: [
'/node_modules/(?!wouter|lucide-react)/',
],
};