wevm / wevm/mppx

Focused tests fail before HTML composition is generated

Open
#868 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

friction
Dominant language
TypeScript
Stars
176
Forks
66
Avg merge
1d 1h
Merged PRs (30d)
52

Description

Expected Behavior

Focused server tests run in a clean worktree.

Current Behavior

The test import fails because src/server/internal/html/compose.main.gen.js has not been generated.

Possible Solution

Generate required composition modules in test setup or avoid importing generated HTML from unrelated focused tests.

Minimal Reproducible Example

From a clean worktree, run VITE_TEMPO_NETWORK=none pnpm test -- --project node src/tempo/session/server/Session.test.ts.

Context

This blocks focused unit-test reproduction until pnpm build is run.


Logged by staubman-stripe in wevm/mppx at 1fd8746. Filed by Frog.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by running VITE_TEMPO_NETWORK=none pnpm test -- --project node src/tempo/session/server/Session.test.ts from a clean worktree and inspect the import of src/server/internal/html/compose.main.gen.js. Trace how focused test setup handles generated composition modules or unrelated generated HTML imports. Done means the focused server test runs successfully without requiring pnpm build first.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
build-system, testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.