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,27 @@
|
||||
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: './',
|
||||
})
|
||||
|
||||
// Integration tests configuration - runs in Node.js environment with fetch polyfill
|
||||
const integrationJestConfig = {
|
||||
displayName: 'Integration Tests',
|
||||
setupFilesAfterEnv: ['<rootDir>/jest.setup.integration.js'],
|
||||
moduleNameMapper: {
|
||||
// Handle module aliases
|
||||
'^@/(.*)$': '<rootDir>/src/$1',
|
||||
},
|
||||
testEnvironment: 'node', // Node.js environment for real HTTP calls
|
||||
testMatch: [
|
||||
'<rootDir>/src/__tests__/integration.test.ts',
|
||||
'<rootDir>/src/__tests__/e2e-docker.test.ts'
|
||||
],
|
||||
testTimeout: 30000, // Longer timeout for integration tests
|
||||
globalSetup: '<rootDir>/jest.globalSetup.integration.js',
|
||||
globalTeardown: '<rootDir>/jest.globalTeardown.integration.js'
|
||||
}
|
||||
|
||||
// createJestConfig is exported this way to ensure that next/jest can load the Next.js config which is async
|
||||
module.exports = createJestConfig(integrationJestConfig)
|
||||
Reference in New Issue
Block a user