Skip to content

Type assert as removed#78

Merged
Scot3004 merged 2 commits intomasterfrom
type-assert-as-removed
Feb 8, 2026
Merged

Type assert as removed#78
Scot3004 merged 2 commits intomasterfrom
type-assert-as-removed

Conversation

@Scot3004
Copy link
Contributor

@Scot3004 Scot3004 commented Feb 8, 2026

Pull request

Removido type assertions que no agregan mucho valor en los test e2e y en unit

@bolt-new-by-stackblitz
Copy link

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@netlify
Copy link

netlify bot commented Feb 8, 2026

Deploy Preview for secorto-astro ready!

Name Link
🔨 Latest commit 483fd08
🔍 Latest deploy log https://app.netlify.com/projects/secorto-astro/deploys/69890e013aebc30008cb39c6
😎 Deploy Preview https://deploy-preview-78--secorto-astro.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 100
Accessibility: 100
Best Practices: 100
SEO: 100
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@cypress
Copy link

cypress bot commented Feb 8, 2026

SeCOrTo web    Run #213

Run Properties:  status check passed Passed #213  •  git commit 483fd080b9: Eliminación de type assertions en tests unit
Project SeCOrTo web
Branch Review pull/78/head
Run status status check passed Passed #213
Run duration 01m 35s
Commit git commit 483fd080b9: Eliminación de type assertions en tests unit
Committer Sergio Orozco
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 6
View all changes introduced in this branch ↗︎

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Este PR simplifica el tipado en la suite de tests (unit y e2e) eliminando type assertions redundantes y apoyándose más en tipos inferidos y en languageKeys como fuente única de locales.

Changes:

  • Eliminación de type assertions innecesarios en tests unitarios.
  • Reemplazo de arreglos locales hardcodeados (['es','en'] as const) por languageKeys en varios e2e tests.
  • Simplificación de casts redundantes en callbacks de evaluate() y en llamadas de helpers tipados.

Reviewed changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated no comments.

Show a summary per file
File Description
tests/unit/utils/sectionContext.test.ts Quita casts redundantes al usar helpers que ya retornan tipos explícitos.
tests/unit/i18n/utils.test.ts Simplifica mocks removiendo as const donde no aporta valor en el test.
tests/e2e/titles/work.titles.spec.ts Itera por languageKeys y elimina casts de locale/key al indexar ui.
tests/e2e/titles/project.titles.spec.ts Igual que el anterior para la sección “project”.
tests/e2e/titles/community.titles.spec.ts Igual que el anterior para la sección “community”.
tests/e2e/smoke/charla.spec.ts Usa languageKeys y tipa expected fixtures con UILanguages directamente.
tests/e2e/main-page.spec.ts Elimina casting intermedio y usa languageKeys directamente en el loop.
tests/e2e/footer.spec.ts Reemplaza locales hardcodeados por languageKeys y elimina casts a UILanguages.
tests/e2e/color-switch.spec.ts Elimina cast redundante en getComputedStyle() dentro de evaluate().
tests/e2e/blog.list.spec.ts Tipado explícito de fixtures y elimina cast redundante al navegar.
tests/e2e/a11y/charla.a11y.spec.ts Usa languageKeys para ejecutar tests a11y por locale sin hardcodear.

@Scot3004 Scot3004 merged commit 72738d2 into master Feb 8, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant