test: trim redundant e2e tests, move pure logic to unit specs - #10651
test: trim redundant e2e tests, move pure logic to unit specs#10651davidfirst wants to merge 82 commits into
Conversation
PR Summary by QodoTests: trim redundant add/config e2e coverage; add determineMainFile unit specs
AI Description
Diagram
High-Level Assessment
Files changed (3)
|
Code Review by Qodo
1. --override conflict coverage removed
|
|
Code review by qodo was updated up to the latest commit 23f127b |
|
Code review by qodo was updated up to the latest commit c9b3b48 |
|
Code review by qodo was updated up to the latest commit d064888 |
|
Code review by qodo was updated up to the latest commit 8d4db88 |
|
Code review by qodo was updated up to the latest commit d15dbd2 |
|
Code review by qodo was updated up to the latest commit ec76886 |
|
Code review by qodo was updated up to the latest commit 0b6f4b3 |
|
Code review by qodo was updated up to the latest commit 42014fb |
|
Code review by qodo was updated up to the latest commit 1b4ccc3 |
|
Code review by qodo was updated up to the latest commit 0e39945 |
| it('should throw an error', () => { | ||
| expect(output).to.have.string('unable to import'); | ||
| }); | ||
| it('should import successfully if the --override flag is used', () => { |
There was a problem hiding this comment.
1. --override conflict coverage removed 📘 Rule violation ≡ Correctness
The PR deletes the only real-workspace test proving import rejects a non-empty custom path and succeeds with --override. This filesystem-sensitive branch cannot be covered by the surviving nonexistent-path case, leaving necessary E2E behavior unverified.
Agent Prompt
## Issue description
The cleanup removes the only E2E coverage for importing into a non-empty custom path and retrying with `--override`.
## Issue Context
Production has a dedicated real-filesystem conflict branch for non-empty directories. Preserve one concise scenario that creates an occupied destination, verifies rejection without `--override`, and verifies success with it.
## Fix Focus Areas
- e2e/commands/import.e2e.ts[144-160]
- scopes/component/component-writer/component-writer.main.runtime.ts[340-357]
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
|
Code review by qodo was updated up to the latest commit 2e3b3cf |
This PR reduces the number of slow e2e tests. The work goes file by file. Each commit covers one e2e file.
Done so far: add.e2e.ts (24 to 13 tests), config.e2e.ts (13 to 11 tests). More commits will follow on this branch.