Skip to content

v5 vs chai-as-promised #1562

Closed
Closed

Description

@mykola-mokhnach

Hello,

Thanks for working on this great library.

This is not an issue, but rather a request for an advice. In the Appium project we have a large tests codebase where we use both chai and chai-as-promised modules to simplify promises validation. The latter is obviously not compatible with v5 of chai, so we would like to ask your advice there. Do you have an official tutorial/approach for chai v5 to test promises like chai-as-promised could, so the latter may be eventually dropped, and we could only rely on the "raw" chai implementation? Or maybe there is some chai technique/plugin we don't know about, which could help us to resolve the above compatibility issue? Or should we report a feature request to chai-as-promised and postpone the chai bump until it is resolved?

Activity

  1. keithamus commented on Dec 28, 2023

    @keithamus
    Member

    I would use async/await to unbox promises and test their underlying values or side effects.

  2. locked and limited conversation to collaborators on Dec 28, 2023
  3. converted this issue into a discussion #1563 on Dec 28, 2023
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions