stacks-testing

Automate Stacks project testing workflows with Bun and DynamoDB.

622|17|Updated Apr 26, 2022
One-click install
npx skills add https://github.com/stacksjs/stacks --skill stacks-testing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: stacks-testing
Source: https://github.com/stacksjs/stacks/tree/main/.claude/skills/stacks-testing
Command: npx skills add https://github.com/stacksjs/stacks --skill stacks-testing

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Writing and running tests for Stacks projects can be verbose and inconsistent. This Skill provides a consolidated testing framework with setup utilities, database helpers, and DynamoDB testing patterns to ensure reliable and repeatable test runs.

Core Features & Use Cases

  • Built-in Bun test runner integration with Stacks-specific utilities
  • Test setup helpers such as setupTestEnvironment, setupDatabase, refreshDatabase, and truncate utilities for SQLite and MySQL
  • DynamoDB testing workflow including Local server lifecycle and table management
  • Standardized test patterns for unit and feature tests, with project-wide conventions and CLI support
  • Configuration guidance for bunfig.toml to streamline test execution

Quick Start

Run buddy test to execute unit and feature tests.

Frequently Asked Questions about stacks-testing

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

FAQPage Schema
How do I set up and run unit tests for a Stacks project using Bun?

To run Stacks testing workflows using Bun, configure bunfig.toml for test execution and use the buddy test CLI command to execute unit and feature test patterns.

What utilities are available for refreshing a test database in Stacks?

Database testing utilities include setupDatabase, refreshDatabase, and truncate helpers for SQLite and MySQL, ensuring a clean and reliable database state before executing test runs.

Can I test DynamoDB workflows locally with Stacks and Bun?

Yes, DynamoDB testing is supported by managing the Local server lifecycle and table management operations to ensure reliable database test execution within Stacks.

Does this testing workflow require specific configuration in bunfig.toml?

Yes, configuring bunfig.toml is required to streamline Bun test execution and apply standardized project-wide conventions for unit, feature, and DynamoDB test patterns.

What is the best way to standardize feature testing in Stacks?

The best way to standardize feature testing is using built-in Bun test runner integration with Stacks-specific setup utilities to ensure repeatable and consistent test runs.