diff --git a/change/@microsoft-fast-html-deep-merge-10831af4-0f87-48c5-bc30-f7fe72593a86.json b/change/@microsoft-fast-html-deep-merge-10831af4-0f87-48c5-bc30-f7fe72593a86.json new file mode 100644 index 00000000000..9841a1672d5 --- /dev/null +++ b/change/@microsoft-fast-html-deep-merge-10831af4-0f87-48c5-bc30-f7fe72593a86.json @@ -0,0 +1,7 @@ +{ + "type": "none", + "comment": "chore(fast-html): use @microsoft/fast-build to build deep-merge fixture", + "packageName": "@microsoft/fast-html", + "email": "7559015+janechu@users.noreply.github.com", + "dependentChangeType": "none" +} diff --git a/packages/fast-html/scripts/build-fixtures.js b/packages/fast-html/scripts/build-fixtures.js index 897306f26b8..87825011246 100644 --- a/packages/fast-html/scripts/build-fixtures.js +++ b/packages/fast-html/scripts/build-fixtures.js @@ -10,6 +10,7 @@ import { fileURLToPath } from "node:url"; const fixtures = [ "attribute", "binding", + "deep-merge", "event", "ref", "slotted", diff --git a/packages/fast-html/test/fixtures/deep-merge/entry.html b/packages/fast-html/test/fixtures/deep-merge/entry.html new file mode 100644 index 00000000000..771f2034e8a --- /dev/null +++ b/packages/fast-html/test/fixtures/deep-merge/entry.html @@ -0,0 +1,156 @@ + + +
+ +Total Orders: {{stats.totalOrders}}
-Total Revenue: ${{stats.totalRevenue}}
-Active Users: {{stats.activeUsers}}
- -Email: {{user.email}}
- - -Age: {{user.profile.age}}
-Location: {{user.profile.location.city}}, {{user.profile.location.country}}
-Theme: {{user.profile.preferences.theme}}
-Notifications:
Total Orders: 3
+Total Revenue: $425.5
+Active Users: 2
+ +Order #{{order.id}} - {{order.date}} - Total: ${{order.total}}
- - -No orders yet
-Email: alice@example.com
+ + + +Age: 28
+Location: New York, USA
+Theme: dark
+Notifications: Enabled
Total Orders: 3
-Total Revenue: $425.5
-Active Users: 2
- -Email: alice@example.com
- - - -Age: 28
-Location: New York, USA
-Theme: dark
-Notifications: Enabled
-Order #101 - 2024-01-15 - Total: $150.5
- - -Email: bob@example.com
- - - -Age: 35
-Location: London, UK
-Theme: light
-Notifications: Disabled
-Order #201 - 2024-03-10 - Total: $200
- - -Total Orders: {{stats.totalOrders}}
+Total Revenue: ${{stats.totalRevenue}}
+Active Users: {{stats.activeUsers}}
+ +Email: {{user.email}}
+ + +Age: {{user.profile.age}}
+Location: {{user.profile.location.city}}, {{user.profile.location.country}}
+Theme: {{user.profile.preferences.theme}}
+Notifications:
Order #{{order.id}} - {{order.date}} - Total: ${{order.total}}
+ + +No orders yet
+Total Orders: {{stats.totalOrders}}
+Total Revenue: ${{stats.totalRevenue}}
+Active Users: {{stats.activeUsers}}
+ +Email: {{user.email}}
+ + +Age: {{user.profile.age}}
+Location: {{user.profile.location.city}}, {{user.profile.location.country}}
+Theme: {{user.profile.preferences.theme}}
+Notifications:
Order #{{order.id}} - {{order.date}} - Total: ${{order.total}}
+ + +No orders yet
+