From b8666279371330fc86a871c00ae59bd61f802941 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 28 Mar 2026 23:26:24 +0000 Subject: [PATCH 1/2] Initial plan From 0a0836e993721a5702582c78d5b86bd52da96e44 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 28 Mar 2026 23:27:56 +0000 Subject: [PATCH 2/2] fix: convert jest.config.js to jest.config.mjs (ES module syntax) Agent-Logs-Url: https://github.com/christianlouis/InboxConverge/sessions/6e25705d-50db-4b0c-969c-1be4cb3f1745 Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com> --- CHANGELOG.md | 6 ++++++ docs/TODO.md | 1 + frontend/{jest.config.js => jest.config.mjs} | 4 ++-- 3 files changed, 9 insertions(+), 2 deletions(-) rename frontend/{jest.config.js => jest.config.mjs} (82%) diff --git a/CHANGELOG.md b/CHANGELOG.md index b6d2bbe..951fd9b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 +## [Unreleased] + +### Fixed + +- Convert `frontend/jest.config.js` to `jest.config.mjs` using ES module `import`/`export` syntax to resolve ESLint `@typescript-eslint/no-require-imports` error. + ## v0.5.0 (2026-03-28) ### Features diff --git a/docs/TODO.md b/docs/TODO.md index 02002c5..155921b 100644 --- a/docs/TODO.md +++ b/docs/TODO.md @@ -4,6 +4,7 @@ Comprehensive task breakdown for repository improvements and production readines ## ✅ Recently Completed +- [x] **ESLint fix**: Converted `frontend/jest.config.js` to `jest.config.mjs` (ES module syntax) to resolve `@typescript-eslint/no-require-imports` lint error. - [x] **Codecov integration**: Added Codecov coverage reporting with `CODECOV_TOKEN` authentication. Set up Jest for frontend tests with lcov coverage, updated CI to collect and upload both backend (XML via pytest-cov) and frontend (lcov via Jest) coverage reports to Codecov with separate `backend` and `frontend` flags. - [x] **IMAP: fix all emails appearing empty** — `aioimaplib` stores RFC822 literal data as `bytearray`, not `bytes`. The extraction loop was checking `isinstance(line, bytes)` which returns `False` for `bytearray`, so every email body was silently skipped. Fixed to accept both types and convert to `bytes`. Affected T-Online, GMX, and all IMAP accounts. - [x] **CI: fix safety scan EOF error** — replaced `safety scan --json` (Safety CLI v3 requires interactive login) with `pip-audit` (no auth required, maintained by PyPA). diff --git a/frontend/jest.config.js b/frontend/jest.config.mjs similarity index 82% rename from frontend/jest.config.js rename to frontend/jest.config.mjs index d7c1fe5..547dfae 100644 --- a/frontend/jest.config.js +++ b/frontend/jest.config.mjs @@ -1,4 +1,4 @@ -const nextJest = require('next/jest'); +import nextJest from 'next/jest.js'; const createJestConfig = nextJest({ dir: './', @@ -19,4 +19,4 @@ const customJestConfig = { ], }; -module.exports = createJestConfig(customJestConfig); +export default createJestConfig(customJestConfig);