Files
metabuilder/docs/archive/src/tests
johndoe6345789 b3e17e7dd4 feat: Add troubleshooting guide and enhance act scripts
- Created a new troubleshooting guide in README.md for common issues and testing problems.
- Updated package.json to include new act commands for linting, type checking, building, and diagnosing workflows.
- Added a pre-commit hook script to validate workflows before commits.
- Enhanced run-act.sh script with logging, Docker checks, and improved output formatting.
- Improved test-workflows.sh with an interactive menu and performance tracking.
- Introduced setup-act.sh for quick setup and testing of act integration.
2025-12-25 13:16:45 +00:00
..

Testing

Overview

Test suites for unit testing, integration testing, and end-to-end testing.

Location

/src/tests/

End-to-end tests are located in /e2e/ directory.

Test Configuration

  • Vitest configuration: vitest.config.ts
  • Playwright E2E configuration: playwright.config.ts

Running Tests

# Unit tests
npm run test

# E2E tests
npm run test:e2e

# E2E tests with UI
npm run test:e2e:ui

# Linting
npm run lint
npm run lint:fix

Test Files in /src/tests/

Unit and integration tests for source code modules.

Test Files in /e2e/

End-to-end tests:

  • smoke.spec.ts - Smoke tests
  • login.spec.ts - Authentication tests
  • crud.spec.ts - CRUD operation tests