Repository navigation
build(deps): actualiza vite a v8 y migra las pruebas a vitest - #809
Merged
Merged
Conversation
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.
Descripción
@vitejs/plugin-react6.1.2 reemplazan a Vite 2.9. Los alias detsconfigse resuelven conresolve.tsconfigPathsy se quitavite-tsconfig-paths.build.target: 'es2019'mantiene la compatibilidad del bundle ycssFileName: 'style'conservadist/style.css.src/test/vitest-setup.tsy las pruebas usanvi.fnyvi.mock.pool: 'vmThreads'ymaxWorkers: '50%'reducen el tiempo de la suite a la mitad.__mocks__y.d.tsdel reporte de cobertura.useParseEvents.displayNamey AlertInfo deja de llamarse ArrowRight.leftinválido'34pxpx'del menú de CalendarDropdown pasa a0. Medido ennpm run docu, la posición del menú no cambia.overridesde@babel/plugin-transform-runtimepara evitar un ERESOLVE del peer opcional de@rolldown/plugin-babel.Motivación y contexto
Vite 2.9 y Jest 27 estaban desactualizados. Vite 8 y Vitest 5 son las versiones actuales y Vitest reutiliza la configuración de Vite. Al migrar, las pruebas de los componentes con cobertura baja se completaron para que el reporte de cobertura sea útil.
¿Cómo puede ser probado esto?
npm ciynpm run test: deben pasar 355 pruebas en 28 archivos.npm run lint:checkynpm run ts-compile-check: deben pasar sin errores.npm run buildynpm run deploy: deben generardist/eclass-ui-kit.es.js,dist/eclass-ui-kit.umd.jsydist/style.css.npm run docuy abrir/organisms/calendardropdown: el menú de escritorio debe abrir en la misma posición que enmain, y en mobile no debe cambiar..claude/rules/commands.md.Tipos de cambios