Skip to content

add extension that showcases setup for unit tests - #113

Merged
aalves08 merged 4 commits into
rancher:mainfrom
aalves08:18312
Jul 28, 2026
Merged

add extension that showcases setup for unit tests#113
aalves08 merged 4 commits into
rancher:mainfrom
aalves08:18312

Conversation

@aalves08

@aalves08 aalves08 commented Jul 9, 2026

Copy link
Copy Markdown
Member

Fixes rancher/dashboard#18312

  • update examples repo to accomodate unit tests
  • add extension that showcases setup for unit tests
  • fix small bug with extensions-api-demo

Based on the work done in rancher/dashboard#18304

…owcases unit tests + fix small bug with extensions-api-demo
@aalves08 aalves08 self-assigned this Jul 9, 2026
@aalves08
aalves08 requested a review from torchiaf July 9, 2026 10:49

@torchiaf torchiaf left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM - see the previous comment even if it's optional.

For the future, we could create a CLI command, similar to npx rancher-cypress init for creating the unit tests directories scaffold


import { useCounter } from '../composables/useCounter';

export default defineComponent({

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nit - we moved from old Vue syntax + Options API to the new one along with Composition API. I think we should the same for this example, which is oriented to new adoptors. wdyt ?

@torchiaf
torchiaf self-requested a review July 22, 2026 15:02
@aalves08
aalves08 requested a review from torchiaf July 28, 2026 10:05
@aalves08
aalves08 merged commit 68c7623 into rancher:main Jul 28, 2026
1 check passed
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.

Tech Debt: Create extension example for the unit testing support on extensions

2 participants