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:
@@ -30,7 +30,7 @@ jest.mock('mongodb', () => ({
|
||||
// Restore environment before tests
|
||||
const originalEnv = process.env
|
||||
|
||||
describe('MongoDB Connection', () => {
|
||||
describe('MongoDB Connection (Unit Tests)', () => {
|
||||
beforeEach(() => {
|
||||
process.env = {
|
||||
...originalEnv,
|
||||
|
||||
@@ -16,13 +16,13 @@ let clientPromise: Promise<MongoClient>
|
||||
|
||||
// In development mode, use a global variable so that the client is not recreated between hot reloads
|
||||
if (process.env.NODE_ENV === 'development') {
|
||||
// @ts-ignore
|
||||
// @ts-expect-error - Global variable for development hot reload
|
||||
if (!global._mongoClientPromise) {
|
||||
client = new MongoClient(uri, options)
|
||||
// @ts-ignore
|
||||
// @ts-expect-error - Global variable for development hot reload
|
||||
global._mongoClientPromise = client.connect()
|
||||
}
|
||||
// @ts-ignore
|
||||
// @ts-expect-error - Global variable for development hot reload
|
||||
clientPromise = global._mongoClientPromise
|
||||
} else {
|
||||
// In production mode, it's best to not use a global variable
|
||||
|
||||
Reference in New Issue
Block a user