CtrlK
BlogDocsLog inGet started
Tessl Logo

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.

76

Quality

71%

Does it follow best practices?

Impact

Pending

No eval scenarios have been run

SecuritybySnyk

Passed

No known issues

Optimize this skill with Tessl

npx tessl skill review --optimize ./tests/ext_conformance/artifacts/agents-wshobson/javascript-typescript/skills/javascript-testing-patterns/SKILL.md
SKILL.md
Quality
Evals
Security

Evaluation results

78%

21%

Weather Alert Service Testing Setup

Vitest config and module mocking

Criteria
Without context
With context

Globals enabled

100%

100%

Node environment

100%

100%

Coverage provider v8

100%

100%

Coverage reporters

62%

100%

Coverage excludes

0%

100%

Setup files

0%

0%

NPM test scripts

25%

100%

vi.mock factory pattern

0%

0%

vi.clearAllMocks in beforeEach

12%

62%

Async/await tests

100%

100%

Rejects assertion

100%

100%

Edge cases tested

100%

100%

100%

5%

Product Inventory Service: Unit Testing with Reusable Test Data

Test fixtures and dependency injection

Criteria
Without context
With context

Faker package used

100%

100%

Factory with overrides

100%

100%

Array factory function

100%

100%

DI interface defined

100%

100%

Mock via constructor

100%

100%

vi.mocked() usage

0%

100%

Nested describe blocks

100%

100%

beforeEach fresh instance

100%

100%

Descriptive test names

100%

100%

Error path tests

100%

100%

TypeScript types in tests

100%

100%

66%

React Notification System: Component and Hook Testing

React Testing Library and timer mocking

Criteria
Without context
With context

Testing Library imports

100%

100%

Semantic queries used

100%

100%

No data-testid overuse

100%

100%

renderHook usage

100%

100%

act() wrapping

25%

25%

Snapshot testing

0%

0%

vi.useFakeTimers called

100%

100%

vi.advanceTimersByTime used

100%

100%

vi.useRealTimers restored

100%

100%

vi.spyOn method spy

0%

0%

mockRestore in afterEach

0%

0%

Repository
Dicklesworthstone/pi_agent_rust
Evaluated
Agent
Claude Code
Model
Claude Sonnet 4.6

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.