content and assets templates use happy-dom in tests but do not declare it
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 72/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- react, typescript, vite
- Área
- testing-qa
Línea de trabajo
Empieza con templates/content/package.json y templates/assets/package.json, que no tienen una entrada happy-dom, y compáralos con templates/mail/package.json, que declara happy-dom 20.12.0. Confirma el fallo ejecutando pnpm test en un workspace de content o assets generado, y luego revisa las cabeceras @vitest-environment happy-dom en templates/content/app/root.spec.ts y templates/assets/app/components/FileUploadStorageGate.test.tsx. Está terminado cuando ambas plantillas declaran la misma versión de happy-dom que mail y sus pruebas arrancan con pnpm test. El issue también sugiere un script de guardia que compara los entornos de prueba de cada plantilla con su package.json, que es opcional.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Summary
The content and assets templates have test files that start with // @vitest-environment happy-dom, but neither template's package.json declares happy-dom. In a scaffolded workspace nothing else installs it, so those test files fail before running. #8239 fixed this for chat only.
Affected
Upstream main templates content and assets. We hit it on a workspace synced to @agent-native/core 0.231.0.
Evidence
templates/content/app/root.spec.tsline 1 andtemplates/assets/app/components/FileUploadStorageGate.test.tsxline 1:// @vitest-environment happy-dom. Many more in both templates (for exampletemplates/assets/app/routes/home.spec.tsx,templates/content/app/components/ContentCommandSearch.focus.test.tsx).templates/content/package.jsonandtemplates/assets/package.jsoncontain nohappy-domorjsdomentry.templates/mail/package.json:100declares"happy-dom": "20.12.0", and the repo rootpackage.jsondeclares none, so in the monorepo the package is probably found through hoisting from other templates.- #8239 describes the same cause for
chat. #8331 (open) covers the other installed-workspace test failures, with fix PR #8919, which does not touchpackage.jsonof these two templates.
Steps to reproduce
- Create a workspace and add the
content(orassets) template. - Run
pnpm testin that app. - Vitest fails to start the worker: "Cannot find package 'happy-dom'".
Expected
Every template declares the test environments its own tests use, so pnpm test starts in a scaffolded workspace.
Suggested direction
Add happy-dom (same version as mail) to the devDependencies of content and assets. A guard that compares each @vitest-environment in a template to that template's package.json would catch the next one, as suggested in #8239.
- Lenguaje dominante
- TypeScript
- Estrellas
- 7.8k
- Forks
- 715
- Merge medio
- 1 d 7 h
- PR fusionados (30 d)
- 866
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de BuilderIO/agent-native
-
Dificultad 1/5 1-3 horas Aptitud para principiantes 76/100
BuilderIO/agent-native#9557 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
BuilderIO/agent-native#9217 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
An `absolute` element near the end of a long page gives the toolkit main surface a second scrollbarPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
BuilderIO/agent-native#8846 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
WebMCP helper fails with “invalid input object” in Chrome 155Posiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
BuilderIO/agent-native#8460 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Skill deletion succeeds but leaves Settings unclickablePosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
BuilderIO/agent-native#8109 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de BuilderIO/agent-native
Issues similares
-
[Bug]: Manager UI logo fails to load — broken external URLPosiblemente ocupada @kavindu-udara la tomó hoy. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
excalidraw/excalidraw#12743 ·
Los mantenedores suelen responder en 1 día
-
area: cli priority: P2 type: bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
appandflow/stim#6381 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
area: ui-kit type: chore
Dificultad 1/5 Menos de una hora Aptitud para principiantes 82/100
schlessera/brain-kit#4598 ·
Los mantenedores suelen responder en 1 día
-
good first issue spec
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100