Toolverse
All skills

feature-flags

by facebook

Use when feature flag tests fail, flags need updating, understanding @gate pragmas, debugging channel-specific test failures, or adding new flags to React.

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Author
facebook
Category
Testing
Views
38

About this skill

Use when feature flag tests fail, flags need updating, understanding @gate pragmas, debugging channel-specific test failures, or adding new flags to React.

How to use

  1. Zlokalizuj plik flag odpowiedni dla Twojego kanału: ReactFeatureFlags.js dla flag domyślnych, ReactFeatureFlags.www.js dla kanału www, ReactFeatureFlags.native-fb.js dla React Native lub ReactFeatureFlags.test-renderer.js dla test renderera. 2. Aby dodać nową flagę, najpierw dodaj ją do ReactFeatureFlags.js z wartością domyślną, następnie dodaj ją do każdego pliku fork'a. Jeśli flaga powinna się różnić między kanałami www i React Native, ustaw wartość na VARIANT w odpowiednim pliku fork'a. 3. Gdy test powinien być całkowicie pominięty bez danej flagi, użyj pragmy @gate na poziomie testu — napisz @gate enableNazwaFlagi przed testem, a test będzie pominięty (nie zawiedziony) gdy flaga jest wyłączona. 4. Gdy funkcja istnieje ale zachowanie różni się w zależności od flagi, użyj funkcji gate() wewnątrz testu — zawiń asercje w if (gate(flags => flags.enableNazwaFlagi)) aby testować zarówno nowe jak i starsze zachowanie. 5. Do testowania flag VARIANT (symulujące gatekeeper'y) uruchom test dwukrotnie: raz z flagą ustawioną na true i raz na false, używając poleceń /test www i /test www variant false . 6. Aby zobaczyć stany flag na wszystkich kanałach, użyj polecenia /flags — skill flag zapewnia pełne opcje poleceń do przeglądania konfiguracji.

Related skills

pair-trade-screener

by tradermonty

Statistical arbitrage tool for identifying and analyzing pair trading opportunities. Detects cointegrated stock pairs within sectors, analyzes spread behavior, calculates z-scores, and provides entry/exit recommendations for market-neutral strategies. Use when user requests pair

Testing
994

playwright

by BloomBooks

How to make good playwright (e2e) tests for this project.

Testing
1298

testing-workflow

by amo-tech-ai

Comprehensive testing workflow for E2E, integration, and unit tests. Use when testing applications layer-by-layer, validating user journeys, or running test suites.

Testing
1076

textual

by KyleKing

Expert guidance for building TUI (Text User Interface) applications with the Textual framework. Invoke when user asks about Textual development, TUI apps, widgets, screens, CSS styling, reactive programming, or testing Textual applications.

Testing
69192

crypto-research

by stevengonsalvez

Comprehensive cryptocurrency market research and analysis using specialized AI agents. Analyzes market data, price trends, news sentiment, technical indicators, macro correlations, and investment opportunities. Use when researching cryptocurrencies, analyzing crypto markets,

Testing
14118

performing-penetration-testing

by jeremylongshore

This skill enables automated penetration testing of web applications. It uses the penetration-tester plugin to identify vulnerabilities, including OWASP Top 10 threats, and suggests exploitation techniques. Use this skill when the user requests a \

Testing
1546