docs: comando headless de tests y contrato window.XMLShield en CLAUDE.md#10
Merged
Conversation
…n CLAUDE.md Añade a CLAUDE.md el comando para correr la suite de regresión headless desde la CLI (node .github/run-tests.mjs) y documenta que tests.html solo puede invocar funciones re-exportadas en window.XMLShield, de modo que una función nueva debe añadirse a ese objeto para ser testeable. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Qué cambia
Dos mejoras puntuales a
CLAUDE.md(sin reescribir el archivo, que ya es preciso):python -m http.server+ abrirtests.html), se documenta cómo correr la misma suite de regresión desde la CLI connode .github/run-tests.mjs(el mismo script que usa CI).window.XMLShield—tests.htmlsolo puede invocar funciones re-exportadas en el objetowindow.XMLShield(al final del<script>, ~línea 2270). Se aclara que una función nueva que la suite necesite ejercitar debe añadirse a ese export, o el test no podrá llamarla.Por qué
Ambos son detalles no obvios que una instancia futura tendría que redescubrir: la tabla de funciones lista internos, pero no señala cuáles son testeables, y el único comando de tests documentado era el del navegador.
Notas para el revisor
CLAUDE.md(+11 líneas), sin tocarindex.htmlni los tests.CONTRIBUTING.mdaún menciona un límite obsoleto de "800 líneas";CLAUDE.mdyREADME.mdya coinciden en el tope vigente de ~2500 líneas / 100KB.🤖 Generated with Claude Code