Skip to content

Added tests for editing User model - #29314

Merged
EvanHahn merged 2 commits into
mainfrom
test-model-edit
Jul 14, 2026
Merged

Added tests for editing User model#29314
EvanHahn merged 2 commits into
mainfrom
test-model-edit

Conversation

@EvanHahn

Copy link
Copy Markdown
Contributor

no ref

This is a test-only change. This code was previously untested.

no ref

This is a test-only change. This code was previously untested.
@coderabbitai

coderabbitai Bot commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 291e0680-92d1-4ae1-a94a-718370f054ee

📥 Commits

Reviewing files that changed from the base of the PR and between 6eface6 and 27c3f92.

📒 Files selected for processing (1)
  • ghost/core/test/unit/server/models/user.test.js

Walkthrough

Added a describe('edit') test block covering duplicate email validation before the base edit operation and user role updates. The role tests stub role lookup and pivot updates, verify the reloaded user result, preserve _changed metadata, and assert the expected method calls and options.

🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main change: adding tests for User model editing.
Description check ✅ Passed The description is related to the changeset and correctly describes it as a test-only update.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch test-model-edit

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@nx-cloud

nx-cloud Bot commented Jul 14, 2026

Copy link
Copy Markdown

🤖 Nx Cloud AI Fix

Ensure the fix-ci command is configured to always run in your CI pipeline to get automatic fixes in future runs. For more information, please see https://nx.dev/ci/features/self-healing-ci


View your CI Pipeline Execution ↗ for commit efc3646

Command Status Duration Result
nx run-many -t test:unit -p ghost ✅ Succeeded 31s View ↗
nx run ghost-monorepo:lint:boundaries ✅ Succeeded <1s View ↗
nx run-many -t lint -p ghost ✅ Succeeded 22s View ↗

💡 Verify your cache is correct by running tasks in a sandbox. Read docs ↗


☁️ Nx Cloud last updated this comment at 2026-07-14 16:19:34 UTC

@EvanHahn
EvanHahn merged commit 5b2e16c into main Jul 14, 2026
31 checks passed
@EvanHahn
EvanHahn deleted the test-model-edit branch July 14, 2026 18:17
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.

1 participant