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)
# Pull Request
## 📖 Description
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`)
## 📑 Test Plan
All existing tests pass:
```
npm run test # runs test:node && test:playwright
```
96 Node.js unit tests and 129 Playwright E2E tests across Chromium, Firefox, and WebKit.
Verified `npm pack --dry-run` produces a clean tarball with 42 files (no test artifacts).
## ✅ Checklist
### General
- [x] I have included a change request file using `$ npm run change`
- [ ] I have added tests for my changes.
- [x] I have tested my changes.
- [x] I have updated the project documentation to reflect my changes.
- [x] I have read the [CONTRIBUTING](https://github.com/microsoft/fast/blob/main/CONTRIBUTING.md) documentation and followed the [standards](https://github.com/microsoft/fast/blob/main/CODE_OF_CONDUCT.md#our-standards) for this project.
├── 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