workflows-management-jest-testing
Skill by elastic
Explains how to use the shared TestProvider in workflows_management Jest tests instead of wiring Kibana, react-query, routing, i18n and Redux providers by hand. It is for developers writing React or Jest tests in the Kibana workflows_management plugin.
Install workflows-management-jest-testing
Built from the published package, never by AI.
git clone --depth 1 https://github.com/elastic/kibana /tmp/kibana && mkdir -p ~/.claude/skills && cp -r /tmp/kibana/src/platform/plugins/shared/workflows_management/.claude/skills/workflows-management-jest-testing ~/.claude/skills/workflows-management-jest-testingRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install workflows-management-jest-testing in Claude Code
git clone --depth 1 https://github.com/elastic/kibana /tmp/kibana && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/kibana/src/platform/plugins/shared/workflows_management/.claude/skills/workflows-management-jest-testing ~/.gemini/antigravity-cli/skills/workflows-management-jest-testingAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install workflows-management-jest-testing in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill documents the shared TestProvider and getTestProvider helpers in the workflows_management plugin. TestProvider wraps a component or hook with the contexts it usually needs, including the Redux store, a react-query QueryClient and Kibana start services. Each of these can be passed in as an optional prop. If omitted, defaults are created automatically.
The skill gives import paths, render examples for components and hooks, and a pattern for sharing a store with the rendered tree through getTestProvider. It also lists the providers that test files should not wire up themselves. It is aimed at contributors writing or updating tests under the plugin's public folder.
Written from the project's SKILL.md and checked against it.
What it can do
- Render with default providersWraps a component in TestProvider with auto-created store, query client and services.
- Share a Redux storeUses getTestProvider with createMockStore so a test can dispatch actions and inspect state.
- Render hooksShows how to pass TestProvider as the wrapper for renderHook calls.
- Override servicesReplaces parts of createStartServicesMock output for a specific test.
- Avoid duplicate wrappersLists providers such as MemoryRouter and I18nProviderMock that TestProvider already covers.
What you need
- Kibana repository with the workflows_management plugin
- Jest test runner
- @testing-library/react
Try asking
- Write a Jest test for this component using TestProvider from workflows_management.
- Render this hook with TestProvider and check the returned workflow details.
- Update this test to share a mock store with getTestProvider and assert state.
Good to know
- Applies only to Jest tests under the workflows_management public folder.
- Pure functions with no React tree do not need the provider.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: src/platform/plugins/shared/workflows_management/.claude/skills/workflows-management-jest-testing/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md5 KB
Alternatives to workflows-management-jest-testing
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
workflows-management-jest-testing: common questions
What is TestProvider in workflows_management?
It is a shared Jest test wrapper that supplies the Redux store, react-query client and Kibana services a component or hook typically needs.
When should I use getTestProvider instead of TestProvider?
Use getTestProvider when the test must share a specific store, query client or services instance with the rendered tree, for example to dispatch actions or seed cache.
Should I still add MemoryRouter or I18nProvider to my test?
No. The skill says these are already provided by TestProvider and should not be hand-wired in test files.
How do I install workflows-management-jest-testing?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is workflows-management-jest-testing free?
The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.
Is workflows-management-jest-testing safe to use?
It scores 80 of 100. Grades: maintenance A, licence F, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to workflows-management-jest-testing?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
