test-frontend-units
Test Frontend Units Skill
Use this skill to run unit tests for React components to validate that features are properly tested and components function as expected.
What This Skill Does
- Runs
npm test -- --runfrom thesrc/client/uidirectory - Executes Vitest test suite including:
src/components/CreateSurvey.test.tsx(15 tests - survey creation form)src/components/GetSurvey.test.tsx(17 tests - survey fetching and display)src/components/MySurveys.test.tsx(18 tests - user surveys listing)
- Tests run in jsdom environment simulating browser APIs
- Includes Auth0 authentication mocking and testing utilities
- Collects test results including:
- Total tests run, passed, failed, skipped
- Failed test names and error details
- Test execution time per file
- Reports failures with specific test names and assertion errors
- Exits with failure status if any tests fail
More from marcelmichau/fake-survey-generator
build-backend
Builds the Fake Survey Generator backend .NET projects. Use this skill when backend code changes need to be compiled and validated for syntax errors. This skill orchestrates the dotnet build command and reports compilation errors.
25validate-e2e
Validates features end-to-end using Playwright MCP to navigate the UI and verify feature behavior. Use this skill to confirm that implemented features work correctly in the running application from a user's perspective. Supports feature-aware happy-path validation tailored to the specific feature requirements.
25test-backend-units
Executes backend unit tests and integration tests for the Fake Survey Generator project using TUnit framework. This skill validates that implemented features are covered by tests and that existing tests continue to pass. Reports test failures and code coverage metrics.
24implement-feature
High-level orchestrator skill for implementing and validating new features end-to-end in the Fake Survey Generator. This skill guides the agent through the complete workflow of analyzing requirements, implementing changes, building, testing, starting the application, and validating features work correctly.
24validate-aspire-runtime
Starts and validates the Aspire orchestrated application runtime. Use this skill to spin up the complete application environment (database, cache, API, Worker, UI) and verify that all resources reach healthy status before running E2E tests.
24fake-survey-gen-foundation
Foundation knowledge about the Fake Survey Generator project architecture, Aspire orchestration, service topology, and build/test infrastructure. Use this skill as reference context when working on features for this project.
24