Skip to content

How to use chai-http and chai 5? #315

Answered by keithamus
topd5 asked this question in Support
Discussion options

You must be logged in to vote

If you follow @43081j's notes and avoid importing request:

import {chai as chaiModule} from 'chai';
const chai = chaiModule.use(chaiHttp);
const request = chai.request;

Replies: 6 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by keithamus
Comment options

You must be logged in to vote
1 reply
@boly38
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #313 on March 15, 2024 11:18.