diff --git a/change/@microsoft-fast-html-binding-00c4aaaf-c636-4dc7-af40-8cd01ae1d4c9.json b/change/@microsoft-fast-html-binding-00c4aaaf-c636-4dc7-af40-8cd01ae1d4c9.json new file mode 100644 index 00000000000..34b2337ca7a --- /dev/null +++ b/change/@microsoft-fast-html-binding-00c4aaaf-c636-4dc7-af40-8cd01ae1d4c9.json @@ -0,0 +1,7 @@ +{ + "type": "none", + "comment": "chore(fast-html): use @microsoft/fast-build to build binding 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..2ef8b5f228a 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", "binding"]; const __dirname = dirname(fileURLToPath(import.meta.url)); const require = createRequire(import.meta.url); diff --git a/packages/fast-html/test/fixtures/binding/entry.html b/packages/fast-html/test/fixtures/binding/entry.html new file mode 100644 index 00000000000..30e6d5fbf82 --- /dev/null +++ b/packages/fast-html/test/fixtures/binding/entry.html @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/packages/fast-html/test/fixtures/binding/index.html b/packages/fast-html/test/fixtures/binding/index.html index 85a59e483b9..ef4407b8bd0 100644 --- a/packages/fast-html/test/fixtures/binding/index.html +++ b/packages/fast-html/test/fixtures/binding/index.html @@ -1,26 +1,19 @@ - + - - - - - - - - - - - - + + + + + + + + + diff --git a/packages/fast-html/test/fixtures/binding/state.json b/packages/fast-html/test/fixtures/binding/state.json new file mode 100644 index 00000000000..1c4dad60e8b --- /dev/null +++ b/packages/fast-html/test/fixtures/binding/state.json @@ -0,0 +1,4 @@ +{ + "text": "Hello world", + "html": "

Hello world

" +} diff --git a/packages/fast-html/test/fixtures/binding/templates.html b/packages/fast-html/test/fixtures/binding/templates.html new file mode 100644 index 00000000000..2a2e6403795 --- /dev/null +++ b/packages/fast-html/test/fixtures/binding/templates.html @@ -0,0 +1,6 @@ + + + + + +