Comments (2)
Hey, @JustinLivi! We could do this, but there might be other approaches. @benesch has a promise-based supertest extension in supertest-as-promised that @shaunc previously wrapped—would something like that suit your needs?
If the exec
/thunk makes better sense for the use-case, it may be better to follow the pattern of extending this package externally rather than changing the API here. This library has mirrored supertest
's continuation-passing API fairly closely (in fact, improving agent support in 'recent' supertest
versions has largely mooted this library's raison d'etre), and departing from it may complicate future compatibility changes.
That being said, I'd be very happy to see this extension working in some form!
from supertest-session.
I wasn't aware of the existence of either of these modules. supertest-session-as-promised looks exactly like what I need, thanks!
from supertest-session.
Related Issues (20)
- Version 1.0.0 causes 'process out of memory' HOT 3
- pass envs to application HOT 1
- Use conformant API
- legacySession is completely broken HOT 3
- Use superagent for cookie handling HOT 1
- Chaining problem when calling done inside expect HOT 1
- Clarity in Readme HOT 6
- supertest-session is causing mocha test suite to hang HOT 8
- Tests fail for instantiated app
- Cannot retrieve session data stored in prior request HOT 7
- Test stops after when use authenticatedSession HOT 2
- NPM Audit report - Supertest version update. HOT 1
- Server sets two cookies during a request, supertest-session persists only one HOT 2
- Dependency declarations missing for clean load in Yarn PnP / Berry HOT 1
- having the same issue HOT 1
- Impossible to write on req.session
- How can I use supertest-session without TypeScript type definitions?
- Missing documentation for manipulating session BEFORE calling methods HOT 4
- Upgrade to use supertest 1.x
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 supertest-session.