diff --git a/change/@microsoft-fast-html-when-00615379-81a9-4dd0-86af-bd600a8ab155.json b/change/@microsoft-fast-html-when-00615379-81a9-4dd0-86af-bd600a8ab155.json new file mode 100644 index 00000000000..a1e216b54fc --- /dev/null +++ b/change/@microsoft-fast-html-when-00615379-81a9-4dd0-86af-bd600a8ab155.json @@ -0,0 +1,7 @@ +{ + "type": "none", + "comment": "chore(fast-html): use @microsoft/fast-build to build when 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 1c67530ba2a..8f917f12266 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"]; +const fixtures = ["attribute", "when"]; const __dirname = dirname(fileURLToPath(import.meta.url)); const require = createRequire(import.meta.url); diff --git a/packages/fast-html/test/fixtures/when/entry.html b/packages/fast-html/test/fixtures/when/entry.html new file mode 100644 index 00000000000..0f392409dc1 --- /dev/null +++ b/packages/fast-html/test/fixtures/when/entry.html @@ -0,0 +1,49 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/packages/fast-html/test/fixtures/when/state.json b/packages/fast-html/test/fixtures/when/state.json new file mode 100644 index 00000000000..5fa17480a7c --- /dev/null +++ b/packages/fast-html/test/fixtures/when/state.json @@ -0,0 +1,10 @@ +{ + "error": false, + "showProgress": true, + "enableContinue": false, + "strings": { + "errorMessage": "Error occurred", + "continueButtonText": "Continue", + "retryButtonText": "Retry" + } +} diff --git a/packages/fast-html/test/fixtures/when/templates.html b/packages/fast-html/test/fixtures/when/templates.html new file mode 100644 index 00000000000..3ff533f5fb9 --- /dev/null +++ b/packages/fast-html/test/fixtures/when/templates.html @@ -0,0 +1,71 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +