Skip to content
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: Add tests for updated session management logic #97

Merged
merged 6 commits into from
May 8, 2023

Conversation

nkshah2
Copy link
Contributor

@nkshah2 nkshah2 commented May 3, 2023

Summary of change

  • Adds tests based on changes in session logic in the backend SDKs and supertokens-core

Related issues

Test Plan

Existing tests pass + added new tests

Documentation changes

Checklist for important updates

  • Changelog has been updated
  • frontendDriverInterfaceSupported.json file has been updated (if needed)
    • Along with the associated array in lib/ts/version.ts
  • Changes to the version if needed
    • In package.json
    • In package-lock.json
    • In lib/ts/version.ts
  • Had run npm run build-pretty
  • Had installed and ran the pre-commit hook
  • Issue this PR against the latest non released version branch.
    • To know which one it is, run find the latest released tag (git tag) in the format vX.Y.Z, and then find the latest branch (git branch --all) whose X.Y is greater than the latest released tag.
    • If no such branch exists, then create one from the latest released branch.

Remaining TODOs for this PR

  • Remove TODO from test server once Node SDK version is updated

@nkshah2 nkshah2 requested a review from rishabhpoddar May 3, 2023 10:19
@github-actions
Copy link

github-actions bot commented May 3, 2023

size-limit report 📦

Path Size
lib/build/index.js 24.28 KB (0%)

@nkshah2 nkshah2 marked this pull request as draft May 3, 2023 10:28
@nkshah2 nkshah2 requested review from porcellus and removed request for rishabhpoddar May 3, 2023 10:55
assert(expectedKeys.includes(key));
}
} else {
assertEqual(payload, {});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be deepEqual?

Comment on lines 452 to 453
// TODO: Remove the hardcoded true
if (true || maxVersion(nodeSDKVersion, "14.0") === nodeSDKVersion) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO

@rishabhpoddar rishabhpoddar marked this pull request as ready for review May 8, 2023 10:22
@rishabhpoddar rishabhpoddar merged commit f342a1f into 4.0 May 8, 2023
3 of 5 checks passed
@rishabhpoddar rishabhpoddar deleted the jwt-rework/update-tests branch May 8, 2023 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants