-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(test): add http strategy tests #8699
chore(test): add http strategy tests #8699
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Ignored Deployment
|
@martinschaer is attempting to deploy a commit to the authjs Team on Vercel. A member of the Team first needs to authorize it. |
import { runBasicTests } from "@auth/adapter-test" | ||
import fetch from "node-fetch" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we not use node-fetch here? tests were passing for me even without it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For this PR we need to wait for surrealdb.js to merge this other PR: surrealdb/surrealdb.js#171
I tested it using my fork with the fix
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import fetch from "node-fetch" |
node-fetch
(or any other fetch
polyfill) indeed is not necessary anymore, as all Node.js versions have fetch
already available.
Can we close this PR in favor of this one? #8823 Sorry for the mess... Also, looks like node 18.18.0 still requires node-fetch, so I kept it for now |
☕️ Reasoning
Surrealdb.js supports socket and HTTP connections. This PR includes unit tests for both types of connections.
🧢 Checklist
🎫 Affected issues
Please scout and link issues that might be solved by this PR.
Fixes: INSERT_ISSUE_LINK_HERE