Skip to content

Add stub type test to mutator engine#10732

Draft
timotheeguerin wants to merge 5 commits into
microsoft:mainfrom
timotheeguerin:mutator-property-stub-type
Draft

Add stub type test to mutator engine#10732
timotheeguerin wants to merge 5 commits into
microsoft:mainfrom
timotheeguerin:mutator-property-stub-type

Conversation

@timotheeguerin
Copy link
Copy Markdown
Member

Added some test to reproduce usage of a @alternateType decorator on similar

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented May 19, 2026

Open in StackBlitz

npm i https://pkg.pr.new/@typespec/http-canonicalization@10732
npm i https://pkg.pr.new/@typespec/mutator-framework@10732

commit: a6599b9

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 19, 2026

❌ There is undocummented changes. Run chronus add to add a changeset or click here.

The following packages have changes but are not documented.

  • @typespec/http-canonicalization

The following packages have already been documented:

  • @typespec/mutator-framework
Show changes

@typespec/mutator-framework - internal ✏️

Add regression tests for alternate type dual-edge mutation (ARM + client paths) in mutator-framework

qiaozha added 2 commits May 22, 2026 13:50
* fix: resolve TypeScript errors in mutator-framework and http-canonicalization

- Make compile() helper generic to preserve t.model()/t.union()/etc marker types
- Fix createPropertyEngine/createOperationEngine/createVariantEngine to use instance types instead of typeof constructor in SimpleMutationEngine generic
- Cast replaceAndMutateReference return in http-canonicalization model.ts to match narrower mutationInfo return type

* test(mutator-framework): add regression tests for alternate type dual-edge mutation
@azure-sdk-automation
Copy link
Copy Markdown

azure-sdk-automation Bot commented May 26, 2026

You can try these changes here

🛝 Playground 🌐 Website 🛝 VSCode Extension

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