Skip to content

test(services): add unit tests for settings.service - #1372

Open
PS01K wants to merge 1 commit into
asyncapi:masterfrom
PS01K:test/settings-service-unit-tests
Open

test(services): add unit tests for settings.service#1372
PS01K wants to merge 1 commit into
asyncapi:masterfrom
PS01K:test/settings-service-unit-tests

Conversation

@PS01K

@PS01K PS01K commented Aug 28, 2026

Copy link
Copy Markdown

Description

  • Adds unit test coverage for SettingsService in apps/studio/src/services/tests/settings.service.test.ts.
  • Tests .get() to verify accurate retrieval of the default SettingsState (both governance flags and templates configuration).
  • Tests .set() to ensure partial updates to templates and nested governance properties update the store correctly while leaving untouched properties intact.
  • Tests .isEqual() to ensure accurate deep equality comparisons against identical and modified settings states.
  • Implements afterEach teardown resetting the store back to defaultState between tests to guarantee test isolation.
  • Verified workspace code quality via turbo run lint (passed with 0 errors, 0 warnings).

Related issue(s)

Relates to #1246 (Part of #1246 - adding unit test coverage for services)

@netlify

netlify Bot commented Aug 28, 2026

Copy link
Copy Markdown

Deploy Preview for modest-rosalind-098b67 ready!

Name Link
🔨 Latest commit d6516db
🔍 Latest deploy log https://app.netlify.com/projects/modest-rosalind-098b67/deploys/6a91b46f10368200074c1734
😎 Deploy Preview https://deploy-preview-1372--modest-rosalind-098b67.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Aug 28, 2026

Copy link
Copy Markdown

Deploy Preview for asyncapi-studio-design-system ready!

Name Link
🔨 Latest commit d6516db
🔍 Latest deploy log https://app.netlify.com/projects/asyncapi-studio-design-system/deploys/6a91b46f0d783c0008796a4a
😎 Deploy Preview https://deploy-preview-1372--asyncapi-studio-design-system.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@changeset-bot

changeset-bot Bot commented Aug 28, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: d6516db

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Welcome to AsyncAPI. Thanks a lot for creating your first pull request. Please check out our contributors guide useful for opening a pull request.
Keep in mind there are also other channels you can use to interact with AsyncAPI community. For more details check out this issue.

@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

1 participant