javascript-testing-patterns

javascript-testing-patterns is a skill for Claude Code, Codex from FluxonLab/Skillry. It costs 63 tokens per session (3,562 once invoked), scanned B, original, no licence file.

A guide to testing JavaScript and TypeScript code with Jest, Vitest, and Testing Library, including unit, integration, and end-to-end tests. It also covers test-driven development (TDD), where tests are written before the code.

In plain words
What is it for?
Use it when writing JavaScript or TypeScript tests, setting up test infrastructure, or applying TDD or behavior-driven development (BDD).
Why use it?
It helps you choose suitable test structures and avoid common problems with mocks, test data, and test setup. This makes automated checks easier to build and maintain.

Skill for Claude CodeCodex

Which agent this was written for is unclear — body not stored (licence); the path alone says nothing.

Good fit Use it when writing JavaScript or TypeScript tests, setting up test infrastructure…

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/fluxonlab/skillry/javascript-testing-patterns
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add FluxonLab/Skillry --skill javascript-testing-patterns
Clone the repo
git clone --depth 1 https://github.com/FluxonLab/Skillry

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for javascript-testing-patterns

README.md
[![agentmods](https://agentmods.dev/badge/skills/fluxonlab/skillry/javascript-testing-patterns.svg)](https://agentmods.dev/skills/fluxonlab/skillry/javascript-testing-patterns)
Your own site
<a href="https://agentmods.dev/skills/fluxonlab/skillry/javascript-testing-patterns"><img src="https://agentmods.dev/badge/skills/fluxonlab/skillry/javascript-testing-patterns.svg" alt="Measured on agentmods" height="20"></a>
Per session 63 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,562 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin unknown No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00063 $0.03562
Opus 5 $0.00032 $0.01781
Sonnet 5 $0.00013 $0.00712
Haiku 4.5 $0.00006 $0.00356

Measured 3d ago against content hash b2d1b0484e91, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade B, and why

javascript-testing-patterns scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Sends data to an external URLmediumData exfiltration

A POST to an outside endpoint may be telemetry or may be exfiltration; either way the mod talks to somewhere, and you should know where.

const response = await fetch("https://api.example.com/users", { method: "POST",
community/wshobson-agents/skills/javascript-testing-patterns/SKILL.md · 540 lines

The source is not reproduced here

A licence we could not identify

The repository carries a LICENSE file, but it is custom or dual enough that GitHub cannot name it and neither can this catalogue. Unknown terms are not permission, so the body is not copied here. Read the licence at the source and decide for yourself.

Read it on GitHub

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 540 lines · 63 tokens per session scan B b2d1b0484e91

Subscribe to this mod's changes

javascript-testing-patterns is a skill published in the GitHub repository FluxonLab/Skillry (2 stars, last pushed 9d ago), with no licence file. It adds 63 tokens to every session and 3,562 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it B with 1 finding (sends data to an external url). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

migrate-to-shoehorn

Migrate test files from as type assertions to @total-typescript/shoehorn. Use when user mentions shoehorn, wants to replace as in tests, or needs partial test data.

stevesolun/ctx · 48 tokens

javascript-testing-patterns

Implement comprehensive testing strategies using Jest, Vitest, and Testing Library for unit tests, integration tests, and end-to-end testing with mocking, fixtures, and test-driven development. Use when writing JavaScript/TypeScript tests, setting up test infrastructure, or implementing TDD/BDD workflows.

ValorVie/custom-skills · 63 tokens

temporal-python-testing

Test Temporal workflows with pytest, time-skipping, and mocking strategies. Covers unit testing, integration testing, replay testing, and local development setup. Use when implementing Temporal workflow tests or debugging test failures.

wshobson/agents · 45 tokens

accessibility-testing

Skill "accessibility-testing" from vibeeval/vibecosystem, covering accessibility testing, axe-core setup, jest-axe (unit / component tests), playwright-axe (e2e) and cypress-axe.

vibeeval/vibecosystem · 31 tokens

testing-python

Stratégie de Tests Python 3.14+. Use when writing tests, reviewing test coverage, or setting up testing.

TheBeardedBearSAS/claude-craft · 28 tokens

unit-test

A Go testing workflow for writing unit tests: small tests that check individual functions or components. It supports table-driven cases, where many inputs and expected results are organised in one test, and subtests.

johnqtcg/awesome-skills · 100 tokens