feat: enhance README and TODO documentation, implement mobile menu functionality in Header component
- Updated README.md with project details, quick start instructions, and tech stack. - Expanded TODO.md to reflect current project status and backlog items, including Linear ticket synchronization. - Added mobile menu toggle functionality in Header component with corresponding tests for user interactions. - Configured Next.js for Docker deployment and optimized build settings.
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
const nextJest = require('next/jest')
|
||||
|
||||
const createJestConfig = nextJest({
|
||||
// Provide the path to your Next.js app to load next.config.js and .env files
|
||||
dir: './',
|
||||
})
|
||||
|
||||
// Unit tests configuration - runs in Node.js environment
|
||||
const unitJestConfig = {
|
||||
displayName: 'Unit Tests',
|
||||
setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],
|
||||
moduleNameMapper: {
|
||||
// Handle module aliases
|
||||
'^@/(.*)$': '<rootDir>/src/$1',
|
||||
},
|
||||
testEnvironment: 'jest-environment-jsdom',
|
||||
collectCoverageFrom: [
|
||||
'src/**/*.{js,jsx,ts,tsx}',
|
||||
'!src/**/index.ts',
|
||||
'!src/**/*.d.ts',
|
||||
'!src/__tests__/**',
|
||||
],
|
||||
testPathIgnorePatterns: [
|
||||
'<rootDir>/.next/',
|
||||
'<rootDir>/node_modules/',
|
||||
'<rootDir>/src/__tests__/integration.test.ts',
|
||||
'<rootDir>/src/__tests__/e2e-docker.test.ts',
|
||||
'<rootDir>/src/__tests__/browser-integration.test.ts'
|
||||
],
|
||||
testMatch: [
|
||||
'<rootDir>/src/**/*.test.{js,jsx,ts,tsx}',
|
||||
'<rootDir>/src/**/*.unit.test.{js,jsx,ts,tsx}'
|
||||
]
|
||||
}
|
||||
|
||||
// createJestConfig is exported this way to ensure that next/jest can load the Next.js config which is async
|
||||
module.exports = createJestConfig(unitJestConfig)
|
||||
Reference in New Issue
Block a user