0.1.0 • Published 5 months ago
@farm-framework/testing v0.1.0
FARM Testing Helpers
Overview
This directory contains utilities and automated tests for FARM project templates and Docker-based infrastructure. It provides a comprehensive suite of tests to verify template generation, Docker integration, and project structure, ensuring the reliability of the FARM framework.
✅ Completed Implementation
Core Components
Vitest Test Suite (
src/)- Contains end-to-end and integration tests for template generation, Docker workflows, and platform compatibility.
- Includes test utilities for running the FARM CLI and managing test environments.
Template Validator (
template-validator.ts)- Helper class that generates a project from a template and checks its structure and compilation.
- Used by tests to automate validation of generated projects.
Setup Script (
setup.ts)- Vitest setup file for initializing the test environment and global hooks.
Type Definitions (
types.ts)- TypeScript definitions for template configs, validation results, and test utilities.
Exports (
index.ts)- Barrel file re-exporting the validator and types for external use in tests.
Structure
testing/
src/ # Vitest test suite and utilities
template-validator.ts # Template validation helper
setup.ts # Vitest setup script
types.ts # Type definitions
index.ts # Barrel file for exports0.1.0
5 months ago