Skip to content

test(e2e): M1 requirements hardening tier#214

Merged
vreshch merged 1 commit into
masterfrom
feature/m1-e2e-hardening
Jul 5, 2026
Merged

test(e2e): M1 requirements hardening tier#214
vreshch merged 1 commit into
masterfrom
feature/m1-e2e-hardening

Conversation

@vreshch

@vreshch vreshch commented Jul 5, 2026

Copy link
Copy Markdown
Member

E2E hardening for M1 - covers every M1 acceptance criterion with end-to-end tests. Stacked on #213 (base = feature/m1b-vault-commands); lands after #212 -> #213.

Adds e2e/m1-requirements.test.ts (@p0), driving the built dist/cli.js against a per-test temp config dir. All offline except update --check (which the verb tolerates on any network state).

Coverage (9 tests)

Requirement Test
vault add --git writes a valid entry (interval + $schema)
--git requires a remote value
duplicate name rejected
allowlist-failing name rejected
empty vaults.json still carries the $schema link
remove keeps markdown on disk, drops the index db
vaults.yaml accepted; JSON wins when both exist
malformed / unknown-type config fails loudly
update --check reports a verdict, exits 0, never installs

Verify

Stack merge order: #212 -> #213 -> this. CI runs once the stack rebases onto master.

@vreshch vreshch force-pushed the feature/m1b-vault-commands branch from ad5dfa3 to 099f25b Compare July 5, 2026 23:20
@vreshch vreshch force-pushed the feature/m1-e2e-hardening branch from c820f66 to 1a23022 Compare July 5, 2026 23:21
Base automatically changed from feature/m1b-vault-commands to master July 5, 2026 23:22
Adds e2e/m1-requirements.test.ts (@p0) covering every M1 acceptance criterion
against the built CLI + a temp config dir:
- add --git valid entry (interval + $schema); --git requires a remote
- duplicate name + allowlist-failing name rejected
- empty vaults.json still carries the $schema link
- remove keeps markdown on disk, drops the index db
- vaults.yaml accepted; JSON wins when both exist
- malformed/unknown-type config fails loudly
- update --check reports a verdict, exits 0, never installs
11 e2e green locally (9 new + 2 existing), 3.1s.
@vreshch vreshch force-pushed the feature/m1-e2e-hardening branch from 1a23022 to 58b2ae1 Compare July 5, 2026 23:22
@vreshch vreshch marked this pull request as ready for review July 5, 2026 23:22
@github-actions

github-actions Bot commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

🎉 PR Validation ✅ PASSED

Commit: 58b2ae1f61eabbe6f90269d1e8fbda22afe54c98
Branch: feature/m1-e2e-hardening

Checks:

  • ✅ Release guard (no version/changelog changes)
  • ✅ Dependencies installed
  • ✅ Type check passed
  • ✅ Linting passed
  • ✅ Format check passed
  • ✅ Tests + coverage passed
  • ✅ Build successful

Ready to merge!


🔗 View workflow run
⏰ Generated at: 2026-07-05T23:22:36.097Z

@vreshch vreshch merged commit 3d10cd2 into master Jul 5, 2026
2 checks passed
@vreshch vreshch deleted the feature/m1-e2e-hardening branch July 5, 2026 23:23
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.

1 participant