← 输入框|github.com|刷新
Skip to content

Migrate cypress tests to use TypeScript #450

Open

Description

@Harpush

Cypress in TypeScript

Currently tests use js which makes it hard to know what each parameter type is.
We are an Angular project that uses TypeScript so it only makes sense to use it for tests too.

Activity

  1. added
    area: testing
    on Aug 23, 2024
  2. Harpush commented on May 30, 2025

    @Harpush
    CollaboratorAuthor

    @SanderElias another option is moving to playwright - your thoughts?

  3. SanderElias commented on May 31, 2025

    @SanderElias
    Contributor

    Going to Playwright would entail a significant rewrite of existing tests.
    Moving to TypeScript is the easier option here. However, for me, the added complexity in the setup is not worth the trouble. I don't care about the missing types in the tests.
    But that is a weakly held opinion. When someone is willing to do the footwork to move to playwright (while keeping the same coverage) or to move the current tests to TS, I will happily accept the PR. The reason is that while I personally don't care about types in tests, I think many developers would be happy to have them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: testingenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions