From 8965f6dfca1ad3d3e986f7e40f1b09e493971a30 Mon Sep 17 00:00:00 2001 From: Jane Chu <7559015+janechu@users.noreply.github.com> Date: Fri, 3 Apr 2026 17:40:56 -0700 Subject: [PATCH] chore(fast-html): use @microsoft/fast-build to build lifecycle-callbacks fixture Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- ...-5f46fc65-6856-4182-b685-1c0c72b5b312.json | 7 + packages/fast-html/scripts/build-fixtures.js | 2 +- .../fixtures/lifecycle-callbacks/entry.html | 14 ++ .../fixtures/lifecycle-callbacks/index.html | 129 +++++++----------- .../fixtures/lifecycle-callbacks/state.json | 8 ++ .../lifecycle-callbacks/templates.html | 34 +++++ 6 files changed, 110 insertions(+), 84 deletions(-) create mode 100644 change/@microsoft-fast-html-lifecycle-callbacks-5f46fc65-6856-4182-b685-1c0c72b5b312.json create mode 100644 packages/fast-html/test/fixtures/lifecycle-callbacks/entry.html create mode 100644 packages/fast-html/test/fixtures/lifecycle-callbacks/state.json create mode 100644 packages/fast-html/test/fixtures/lifecycle-callbacks/templates.html diff --git a/change/@microsoft-fast-html-lifecycle-callbacks-5f46fc65-6856-4182-b685-1c0c72b5b312.json b/change/@microsoft-fast-html-lifecycle-callbacks-5f46fc65-6856-4182-b685-1c0c72b5b312.json new file mode 100644 index 00000000000..8e3afd94000 --- /dev/null +++ b/change/@microsoft-fast-html-lifecycle-callbacks-5f46fc65-6856-4182-b685-1c0c72b5b312.json @@ -0,0 +1,7 @@ +{ + "type": "none", + "comment": "chore(fast-html): use @microsoft/fast-build to build lifecycle-callbacks 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 5b2b4008dfe..984fee993d5 100644 --- a/packages/fast-html/scripts/build-fixtures.js +++ b/packages/fast-html/scripts/build-fixtures.js @@ -7,7 +7,7 @@ import { fileURLToPath } from "node:url"; // Builds test fixtures using @microsoft/fast-build. Add fixture names here // incrementally as each one is verified to work with the fast-build CLI. -const fixtures = ["attribute", "binding", "event", "ref", "slotted", "when", "repeat", "repeat-event", "children", "host-bindings"]; +const fixtures = ["attribute", "binding", "event", "ref", "slotted", "when", "repeat", "repeat-event", "children", "host-bindings", "lifecycle-callbacks"]; const __dirname = dirname(fileURLToPath(import.meta.url)); const require = createRequire(import.meta.url); diff --git a/packages/fast-html/test/fixtures/lifecycle-callbacks/entry.html b/packages/fast-html/test/fixtures/lifecycle-callbacks/entry.html new file mode 100644 index 00000000000..bdee10a0d90 --- /dev/null +++ b/packages/fast-html/test/fixtures/lifecycle-callbacks/entry.html @@ -0,0 +1,14 @@ + + +
+ +Count: 0
-Status: pending
- -Parent
-Count: {{count}}
-Status: {{status}}
-{{label}}
-Count: 0
+Status: pending
Parent
+Count: {{count}}
+Status: {{status}}
+{{label}}
+Count: {{count}}
+Status: {{status}}
+{{label}}
+