vf-testing

Automate Deno BDD testing for TypeScript and React applications in Veryfront Code.

9|1|Updated Nov 21, 2025
One-click install
npx skills add https://github.com/veryfront/veryfront-code --skill vf-testing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vf-testing
Source: https://github.com/veryfront/veryfront-code/tree/main/.claude/skills/vf-testing
Command: npx skills add https://github.com/veryfront/veryfront-code --skill vf-testing

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill aids in writing, modifying, and debugging tests in Veryfront Code by providing BDD structure, Deno test flags, test utilities, sanitizer rules, and guidance on test file placement.

Core Features & Use Cases

  • BDD-style Testing: Offers a structured approach to testing with Behavior-Driven Development (BDD) principles.
  • Deno Test Runner: Leverages Deno's test runner for reliable and efficient testing.
  • Test Utilities: Provides tools for resource management, filesystem isolation, environment isolation, and async helpers.
  • Sanitizer Rules: Instructs best practices for using Deno sanitizers for security.
  • Index Export Tests: Ensures public API exports are verified.
  • Use Case: A developer uses this Skill to write unit tests for a function within a Veryfront Code project, ensuring it behaves as expected under various conditions.

Quick Start

Run unit tests for your function by executing 'deno test --no-check --allow-all --unstable-worker-options --unstable-net --ignore=tests,src/ai/workflow/tests,src/cli/commands/*.integration.test.ts' in your project directory.

Frequently Asked Questions about vf-testing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write unit tests for React and TypeScript using BDD in Deno?

To write unit tests for React and TypeScript using BDD in Deno, use a structured Behavior-Driven Development approach with the Deno test runner. This provides test utilities for resource management, filesystem isolation, and environment isolation to ensure reliable execution.

What is the best way to run Deno tests for a Veryfront Code project?

The best way to run Deno tests for a Veryfront Code project is by executing the deno test command with specific flags like --no-check and --allow-all. You should also apply --unstable-worker-options and use --ignore to exclude integration tests and specific directories.

Does Deno support BDD-style testing for TypeScript applications?

Yes, Deno supports BDD-style testing for TypeScript applications by offering a structured approach to Behavior-Driven Development. This includes utilizing sanitizer rules for security and verifying public API exports through index export tests.

Can I isolate filesystem and environment resources when running Deno tests?

Yes, you can isolate filesystem and environment resources when running Deno tests by using provided test utilities. These tools include async helpers and specific sanitizers that help manage resource allocation and enforce security best practices during execution.

How do I structure integration tests versus unit tests in a Deno and React project?

To structure integration tests versus unit tests in a Deno and React project, place them in organized directories and use the deno test command with the --ignore flag. This allows you to exclude integration test files and specific test folders during standard unit test execution.