test: test:e2e fails, and the website, files, manifest and watch code have no tests

Ouverte
#139 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
4/5
Temps estimé
3-5 jours
Accessibilité débutants
52/100
Type d'issue
Fonctionnalité
Clarté
Plutôt claire
Activité
Active
Stack technique
node.js, typescript
Domaine
testing, tooling

Piste de recherche

Start with the root package.json and turbo.json to trace why pnpm test:e2e has no task, then inspect the existing tests for safe-path and editor-ipc. The issue proposes several possible scopes: define or remove the e2e task, add loader tests for /manifest, /env and /game/*, and add website cache tests. Agree on a scope first; done means the selected tests or script run successfully.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

enhancement tests
Which app is this feature request for?

other

Feature

pnpm test:e2e (root package.json) fails because no package defines the task, and turbo.json has no test:e2e entry (CI passes e2e-script: ""):

$ pnpm test:e2e
x Could not find task `test:e2e` in project
[ELIFECYCLE] Command failed with exit code 1.
$ pnpm test:unit   ->  Tasks: 2 successful, 2 total  (the website has no test:unit)

Unit tests only cover safe-path (client) and editor-ipc (server). The riskiest code has no test: the env filter (env.ts), files.ts in both apps, manifest hashing, worker spawn and restart, the watchers, and the website cache (cache.ts: hash, size and eviction).

Found during a read-only audit of main @ 044c766 (2026-11-11).

Ideal solution or implementation
  • Either remove test:e2e from the root scripts, or add a minimal e2e: start the client and server loaders on a fixture build, then request /manifest, /env and /game/*.
  • Add unit tests for getGameEnv (client and server), getFiles and updateFiles.
  • Add a test:unit to apps/website for the cache logic.
Alternative solutions or implementations

No response

Other context

Several bugs found in the same audit sit in this untested code (env filtering, worker restart, watchers).

Langage dominant
TypeScript
Étoiles
1
Forks
0
Merge moyen
17 h 25 min
PR mergées (30 j)
11

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de NanoForge-dev/Loader

Toutes les issues de NanoForge-dev/Loader

Issues similaires

Plus d'issues TypeScript

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.