Comments (5)
im guessing this is actually thanks to sinon-chai
and that will be caused by chaijs/chai#1569
from chai-http.
It seems like the issue is in @types/chai: "4" which is imported by the project and missing the methods
from chai-http.
ah sorry yes, i missed that it is a typescript error
i would've thought calledWith
came from sinon-chai. i don't think chai has such a method
so maybe you need the types package for sinon-chai
? or whichever package is providing the calledWith
extension
from chai-http.
I'll check that out. But if I remove @types/chai from node_modules, the project manages to compile (so maybe that dependency should be a devDependency to avoid these side effects?)
from chai-http.
You are right!!!
Adding
"@types/chai-as-promised" and "@types/sinon-chai" solved the issue. Thanks for pointing that out
from chai-http.
Related Issues (20)
- Issue with MongoDB ObjectId in tested function?
- Assertion error expending cookie
- [possibly bug] aws-sdk and multer-s3 with chai-http agent promise not resolved HOT 1
- Issues and PRs are piling. Are maintainers needed? HOT 1
- How to send gzip compressed body
- publish to npm actual version HOT 2
- Found CVE-2022-29622 in one of your dependent library- superagent
- How to send multiple json in post request using supertest
- Vulnerability in cookiejar CVE-2022-25901 HOT 1
- How to use chai-http and chai 5? HOT 6
- Lib superagent:8.0.9 has dependency with problems HOT 8
- Rework to using classes instead of prototypes
- Update some "low" hanging dependencies HOT 1
- Update npm packages for releasing
- Raise git-build versions
- document the way to use chain 5 and import to get chai-http request
- Unable to use chai-http with chai 5 HOT 1
- error TS2339: Property 'post' does not exist on type 'Agent' HOT 3
- Not able to require the chai-http as commonjs() in latest version HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chai-http.