Skip to content

tests: fix --full usages after the scope-flip merge race#42

Merged
exo-nikita merged 1 commit into
mainfrom
claude/fix-test-flags-post-flip
Jun 8, 2026
Merged

tests: fix --full usages after the scope-flip merge race#42
exo-nikita merged 1 commit into
mainfrom
claude/fix-test-flags-post-flip

Conversation

@exo-nikita

Copy link
Copy Markdown
Collaborator

Cause

PR #41 (static-bundle work) was rebased on commit 39d7dd5 and squash-merged after ed41d6f (the --full--dependencies flip) landed on main. The squash didn't include ed41d6f's changes to my tests, so they used --full and no-flag-defaulting-to-node_modules patterns that no longer match the CLI:

  • --full was renamed to default (the implicit polarity is now full-scope)
  • --dependencies is the new opt-in for node_modules-only
  • The popular-npm-modules fixture is node_modules-scoped, so its tests need an explicit --dependencies to avoid env-vs-file scope conflict

What changed

  • tests/popular-npm-modules.test.js — static-bundle headlines + 22-cell matrix now pass --dependencies to match the fixture. Multi-entry test drops --full (default is full now).
  • tests/scan.test.jscaptureRuntimeBundle passes --dependencies when not in full mode; module-sync regression drops --full.
  • tests/bundle-cmd.test.jsERR_MODULE_NOT_FOUND regression drops --full.

Test plan

  • Local: 400 of 410 pass on claude/fix-test-flags-post-flip rebased onto current main. The 10 remaining are the pre-existing lock × bundle × mock byte-equality failures from PR cli: flip --full to default, replace with --dependencies opt-in #40's --mock feature, unrelated to this branch.
  • Verified against ed41d6f (10 fail) and 740a3b8 (was 36, now 10).
  • Lint clean.

https://claude.ai/code/session_01DqXmS7gzzwuY4AF4wnViob


Generated by Claude Code

PR #41 (static-bundle work) was rebased on commit 39d7dd5 and merged after
ed41d6f (the --full→--dependencies flip) landed. The squash brought my tests
in with --full and no-flag-defaulting-to-node_modules patterns that no longer
match the CLI: --full is gone, no-flag now defaults to scope=full, and the
nm-scoped popular-npm-modules fixture needs an explicit --dependencies to
match its stasis.config.json.

Affected:
- tests/popular-npm-modules.test.js: static-bundle headlines + 22-cell matrix
  needed --dependencies for the nm-scoped fixture. Two leftover --full args
  in the multi-entry test removed (scope=full is now the default).
- tests/scan.test.js: captureRuntimeBundle defaulted to no-flag (was
  node_modules by default), now passes --dependencies when full is false.
  module-sync regression test drops --full (default is full now).
- tests/bundle-cmd.test.js: ERR_MODULE_NOT_FOUND regression test drops --full.

All 26 new failures introduced by the merge race are gone (verified locally:
400 of 410 pass; the 10 remaining are the pre-existing mock-matrix byte-
equality failures unrelated to this branch).

https://claude.ai/code/session_01DqXmS7gzzwuY4AF4wnViob
@exo-nikita exo-nikita merged commit 65b7d11 into main Jun 8, 2026
2 checks passed
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.

2 participants