Skip to content

Regression coverage#1277

Open
gloskull wants to merge 4 commits into
Stellar-Mail:mainfrom
gloskull:regression-coverage
Open

Regression coverage#1277
gloskull wants to merge 4 commits into
Stellar-Mail:mainfrom
gloskull:regression-coverage

Conversation

@gloskull

Copy link
Copy Markdown

Motivation
Add focused regression tests for the contacts import flow to make parsing behavior transparent and prevent regressions when editing the import wizard or parser helpers.
Description
Add tests/unit/contacts-import.test.ts which exercises parseCsv, revalidate, and findDuplicateAddresses from src/features/contacts/parseContacts.ts.
Tests cover a successful, headered CSV parse, a malformed row that surfaces the current validation error and is recoverable via revalidate, and case-insensitive duplicate detection while ignoring blank addresses.
The tests use deterministic fixtures and mock the system time to produce stable import IDs and do not change production code.
Testing
Ran npx vitest run tests/unit/contacts-import.test.ts and the new test file passed (3 tests).
Ran npx tsc --noEmit for type checking which succeeded.
Ran npm run lint; formatting issues in the new test were auto-fixed before committing and the linter completed (warnings remain elsewhere in the repo).
Closes #994

@gloskull

Copy link
Copy Markdown
Author

Done resolving this issue. Please merge and give an high review.
Please if there are any further tasks, do assign more to me.

google-labs-jules Bot and others added 2 commits June 26, 2026 20:24
…config

- Update .github/workflows/ci.yml bun-version to a valid version (1.2.14).
- Relax ESLint rules for tools/ directory in eslint.config.js to match project patterns.
- Remove unused eslint-disable directives from several files.

Co-authored-by: gloskull <189399494+gloskull@users.noreply.github.com>
…615847480962966

Fix failing CI Client Checks and update linting configuration
@gloskull

Copy link
Copy Markdown
Author

Done fixing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Existing app][Contacts Import] Add regression coverage for current behavior

1 participant