You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore: prepare fast-test-harness package for publishing (#7506)
Prepares `@microsoft/fast-test-harness` for npm publishing by cleaning
up the package layout and exports.
- Excluded test files (`.test.ts`, `.spec.ts`) from the build output via
`tsconfig.build.json`
- Simplified the `files` array to use wildcards (`*.mjs`, `*.d.ts`)
instead of enumerating each root-level file
- Added `./fixtures/*.js` to the package exports map so fixture classes
can be imported directly
- Exported `setTemplate` and `updateTemplate` option types from
`CSRFixture` and `SSRFixture`
- Updated `README` exports table to match the current public API surface
- Updated package scripts (`test:node`, `test:playwright`)
(cherry picked from commit 7383168)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
├── entry-client.ts # SSR: registers components for hydration
32
+
└── entry-server.ts # SSR: exports render() for fixture generation
33
+
```
34
+
15
35
## Writing tests
16
36
17
37
Import `test` and `expect` from the harness. Configure the component tag name with `test.use()`, then call `fastPage.setTemplate()` in each test to render it.
0 commit comments