Comments (8)
Hey @zeke, and thanks for reporting!
This looks like an issue with the way the cookie jar's URL is initialized. I've pushed up a heavy-handed fix in #29 (9dc83a1) that should get the test suite back on track. When you have a moment, could you confirm that it works for you?
from supertest-session.
Thanks for the quick fix, @rjz. I installed rjz/supertest-session#9dc83a1a33b8c5d0aa134ea0032a870526ef0368
and it's working like a charm. 👍
from supertest-session.
Beauty! I'll clean that commit up and cut a new release shortly.
from supertest-session.
Published as [email protected].
Thanks again for catching this, @zeke, and please be in touch if anything else comes up!
from supertest-session.
@rjz It seems like this change broke some expectations.
app
, in my case, is an Object
and not a Function
. I already have a full working server, but I still need to extract the url from the app object itself.
from supertest-session.
I legitimately flipped a coin over whether the fix in #29 constituted a "patch" version or not. I lost.
Sorry about that, @XVincentX—will fix and update ASAP!
from supertest-session.
It is actually really weird how I come up to this bug.
I have a test suite for an open source project running on node 6,8 and 9.
Suddenly node6 build broke and I started to investigate, and it was pointing to supertest-session
; I updated your library (since I noticed an update) and here I am now.
I still do not get what made the node6 build break suddenly 🤔
from supertest-session.
I was able to reproduce the issue and pushed up a quick fix (3ae4930), but it's weird that it's version dependent. I've added 6,8, and 9 to the travis build (#31)—hopefully CI will catch this in the future!
Sorry again for the trouble, and big thanks for homing in on the issue.
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
- Promise wrapper method HOT 2
- Clarity in Readme HOT 6
- 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
- Example in documentation does not work, because done is not called in before (and after) HOT 2
- 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.