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(test): core test setup #9238

Merged
merged 8 commits into from
Nov 30, 2023
Merged

chore(test): core test setup #9238

merged 8 commits into from
Nov 30, 2023

Conversation

ThangHuuVu
Copy link
Member

@ThangHuuVu ThangHuuVu commented Nov 25, 2023

NOTE:

  • It's a good idea to open an issue first to discuss potential changes.
  • Please make sure that you are NOT opening a PR to fix a potential security vulnerability. Instead, please follow the Security guidelines to disclose the issue to us confidentially.

☕️ Reasoning

In this PR, I added a vitest test setup for core.
I also write 4 tests for the session routes, including 3 tests for JWT and 1 test for DB session.

🧢 Checklist

  • Documentation
  • Tests
  • Ready to be merged

🎫 Affected issues

Please scout and link issues that might be solved by this PR.

Fixes: INSERT_ISSUE_LINK_HERE

📌 Resources

Copy link

vercel bot commented Nov 25, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
auth-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 30, 2023 1:58pm
2 Ignored Deployments
Name Status Preview Comments Updated (UTC)
auth-docs-nextra ⬜️ Ignored (Inspect) Visit Preview Nov 30, 2023 1:58pm
next-auth-docs ⬜️ Ignored (Inspect) Visit Preview Nov 30, 2023 1:58pm

@github-actions github-actions bot added the core Refers to `@auth/core` label Nov 25, 2023
Copy link

socket-security bot commented Nov 25, 2023

New dependencies detected. Learn more about Socket for GitHub ↗︎

Packages Version New capabilities Transitives Size Publisher
vite 5.0.2 None +0 3.38 MB vitebot

@ThangHuuVu ThangHuuVu changed the title feat: basic test setup feat: core test setup Nov 25, 2023
packages/core/package.json Show resolved Hide resolved
packages/core/package.json Outdated Show resolved Hide resolved
packages/core/src/test-setup.ts Outdated Show resolved Hide resolved
packages/core/src/index.test.ts Outdated Show resolved Hide resolved
packages/core/src/index.test.ts Outdated Show resolved Hide resolved
@balazsorban44 balazsorban44 changed the title feat: core test setup chore(test): core test setup Nov 30, 2023
@balazsorban44 balazsorban44 merged commit 5c2b0b6 into main Nov 30, 2023
7 checks passed
@balazsorban44 balazsorban44 deleted the feat/testing-core branch November 30, 2023 13:56
liquidx pushed a commit to liquidx/next-auth that referenced this pull request Dec 4, 2023
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.

2 participants