2025-08-15 10:00:00 -07:00
# Build and Verification
## Prerequisites
- Node.js `>= 18`
- npm `>= 9` (workspace support)
## Install
``` bash
2026-05-21 10:10:11 -07:00
npm install
2025-08-15 10:00:00 -07:00
```
## Build All Packages
``` bash
npm run build
```
Root build executes workspaces in dependency order. All 14 packages compile cleanly.
## Type Check
``` bash
npm run typecheck
```
2026-05-21 10:10:11 -07:00
## Unit Tests
2025-08-15 10:00:00 -07:00
``` bash
2026-05-21 10:10:11 -07:00
npm test
2025-08-15 10:00:00 -07:00
```
2026-05-21 10:10:11 -07:00
Runs all tests across all workspaces.
## Integration Tests
``` bash
npm run test:integration
```
Pooling, property runner, and cross-package integration tests (imhotep-playwright).
2025-08-15 10:00:00 -07:00
## E2E (Playwright)
``` bash
2026-05-21 10:10:11 -07:00
npm run test:e2e
2025-08-15 10:00:00 -07:00
```
2026-05-21 10:10:11 -07:00
Playwright config lives at `packages/imhotep-fixtures/playwright.config.ts` and targets compiled E2E tests under `packages/imhotep-fixtures/dist/` . Requires a prior build.
2025-08-15 10:00:00 -07:00
2026-05-21 10:10:11 -07:00
To run directly:
``` bash
npx playwright test --config packages/imhotep-fixtures/playwright.config.ts
```
2025-08-15 10:00:00 -07:00
## External Smoke Test
``` bash
npm run test:external-smoke
```
Creates a clean temp directory, installs packages from local paths, and runs a full integration smoke test. Verifies that the published package structure works correctly.
## Common Targeted Runs
``` bash
# Run tests for a specific package
2026-05-21 10:10:11 -07:00
npm test -w imhotep-playwright
npm test -w imhotep-fixtures
2025-08-15 10:00:00 -07:00
# Run specific E2E test file
npx playwright test packages/imhotep-fixtures/src/e2e-public.test.ts
```
## Clean
``` bash
npm run clean
```
2026-05-21 10:10:11 -07:00
Removes `dist/` , `tsbuildinfo` files, and any in-source generated artifacts (`*.js` , `*.d.ts` , `*.map` under `packages/*/src/` ).
2025-08-15 10:00:00 -07:00
## Packaging Smoke
Use this before publishing a package:
``` bash
npm pack --json
```
Check packed `package/package.json` for:
- no `workspace:*` protocol dependencies
- correct `main` , `types` , and `exports`