testing-codegen

Run Biome tests, generate code, and create versioning changesets.

25.5k|1.2k|Updated Jul 27, 2023
One-click install
npx skills add https://github.com/biomejs/biome --skill testing-codegen
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: testing-codegen
Source: https://github.com/biomejs/biome/tree/main/.claude/skills/testing-codegen
Command: npx skills add https://github.com/biomejs/biome --skill testing-codegen

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill simplifies the process of testing workflows and generating code within the Biome project, ensuring contributions are robust and up-to-date.

Core Features & Use Cases

  • Snapshot Testing: Manage and review code snapshots for lint rules and other generated outputs using insta.
  • Code Generation: Regenerate parser, analyzer, and formatter code after making changes to grammar or rule definitions.
  • Changeset Management: Create and manage versioning changesets for releases.

Quick Start

Run all tests for the Biome project using the provided command.

Frequently Asked Questions about testing-codegen

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

FAQPage Schema
How do I run snapshot testing for Biome lint rules using insta?

Snapshot testing for Biome lint rules using insta allows you to manage and review code snapshots for generated outputs. It ensures code integrity by verifying that rule changes produce expected results across the project.

How do I regenerate parser and formatter code after modifying Biome grammar?

Regenerating parser and formatter code after modifying Biome grammar involves running the code generation process to update analyzer and rule definitions. This ensures the generated codebase stays current with your grammar changes.

What is the best way to create versioning changesets for Biome releases?

Creating versioning changesets for Biome releases involves managing changeset entries to track modifications for each release. This process ensures proper versioning documentation is maintained when contributing to the Biome codebase.

Can I use this Biome testing workflow for lint rule generation?

Yes, this workflow supports generating lint rules and configurations within the Biome JavaScript toolchain. It facilitates code generation to ensure new rules are properly integrated and tested within the project.

How do I run all tests for the Biome project?

Running all tests for the Biome project involves executing the provided testing command to validate code integrity. This ensures contributions are robust and all generated outputs function as expected.

Why do I need to regenerate analyzer code when changing Biome rule definitions?

Regenerating analyzer code after changing Biome rule definitions is necessary to keep the generated outputs up-to-date. It ensures the analyzer properly reflects the modified rule logic during testing and linting.