packages/test-support/README.md

@portfolio/test-support

Test fixtures and utilities for E2E and integration testing.

Overview

This package provides testing infrastructure:

  • Mock data fixtures for blog and portfolio APIs
  • Test constants shared by Playwright helpers
  • In-memory blog store helpers

Dependencies

  • @portfolio/chat-contract - Type definitions

Fixture Mode

Enable fixtures via environment variables:

BLOG_TEST_FIXTURES=true
PORTFOLIO_TEST_FIXTURES=true

ESLint Boundary

This package is restricted from production imports. The boundary check allows imports from:

  • e2e/
  • Test files (*.test.ts, *.spec.ts)
  • Other test-support code

Related Packages