Skip to content

Isolate server bundle self-containment test from foreign /tmp/node_modules #213

Description

@andrei-hasna

Todos: ebc9c221-23ec-4628-be84-c88415f78a7f (T-00013)

The @hasna/todos server-bundle-self-contained test is contaminated by foreign /tmp/node_modules on shared stations. Full suite literal result was 3478 pass, 46 skip, 1 fail; the sole failure expected AJV bare specifiers to be unresolvable but Node found them through /tmp/node_modules. Running the exact test with TMPDIR under /home/hasna/.cache passed 7/0 with 43 expectations.

Acceptance:

  • Add a RED fixture that creates a foreign parent node_modules containing the relevant bare specifier and proves the current test instrument can be fooled.
  • Fix the test harness at its owning layer so bundle self-containment is evaluated from an isolated root or a resolver boundary that cannot climb into unrelated station state; do not change production bundle semantics to satisfy the test.
  • The focused bundle test passes under both contaminated and clean temp parents; the original positive and negative controls still discriminate.
  • Affected tests, typecheck/build as applicable, staged secrets scan, and one independent exact-candidate review have zero reachable in-scope P0/P1 findings.
  • Land as a separate PR; do not amend or block the metadata-only 0.15.9 release if clean CI proves the candidate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions