Skip to content

ESM node 20.17.0 issue with chai and chai-http #1642

Open
@CristhianR

Description

Hello I am having issues using chai and chai-http with nodejs version 20.17.0 using type: module.
Current libraries version: "chai": "^5.1.1", "chai-http": "^5.0.0" and "mocha": "^10.7.3".
Look my test files:

Screenshot from 2024-09-29 10-54-25

Now look the output:

Screenshot from 2024-09-29 10-57-01

How the second test (BAD_REQUEST) fails if it has the same configuration of the first test (OK)?

Also I imported chai-http with 'chai-http/index.js' to avoid the WARNING deprecation, but chai.request is not define.

Metadata

Assignees

No one assigned

    Labels

    waiting-on-reporterIssues where we are waiting to hear back from the original reporter

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions