Upgrade jsdom 24.x to 31.x

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

Personne n'a encore pris cette issue.

Évaluation

Difficulté
4/5
Temps estimé
3-5 jours
Accessibilité débutants
52/100
Type d'issue
Bug
Clarté
Clairement spécifiée
Activité
Active
Stack technique
javascript, node.js

Piste de recherche

Start by reading package.json and the four test files listed in the issue, then run npm install, npm test, and npm run lint to capture the current failure. Check the Node engine and module loading behavior for jsdom 31, then use the test output to guide the update. Done when jsdom is on the current major, the suite and lint pass, and PR #21 is closed.

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

Description

dependencies help wanted severity: low

Summary

jsdom is pinned at ^24.1.0 (resolves to 24.1.3); the latest is 31.0.0. All four test files load it directly, and the automated attempts to move it (PR #21 to 28.1.0 and earlier ones) failed CI.

Where

  • package.json:17
  • tests/unit/utils.test.js:1, tests/unit/pieces.test.js:1, tests/unit/game-moves.test.js:1, tests/integration/game-flow.test.js:1

Details

The CI logs for the failed PRs have expired, so the cause is unconfirmed. Likely suspects are the Node engine floor of newer jsdom and require() of a package with ESM-only dependencies under "type": "module" (package.json:5).

Suggested fix

After #36, bump to ^31, run the suite locally to capture the failure, fix the test bootstrap, and close PR #21.

Acceptance criteria

  • jsdom is on the current major and tests pass
  • PR #21 is closed

Getting started

  • Relevant files: package.json, tests/
  • How to run tests: npm install, then npm test and npm run lint
  • Related docs: docs/ARCHITECTURE.md, .github/CONTRIBUTING.md

Filed by repo-audit/full-audit at 8a2c86c. Severity: low. Effort: M. audit-key: dependencies|package.json|jsdom

Langage dominant
JavaScript
Étoiles
4
Forks
2
Métriques de merge des PR
Aucune PR mergée en 30 j

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 TMHSDigital/Static_Chess

Toutes les issues de TMHSDigital/Static_Chess

Issues similaires

Plus d'issues JavaScript

Recevez les nouvelles issues par e-mail

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