Lightlines
By wshobson

javascript-testing-patterns

wshobson19.7k installs

Build JavaScript tests that check real behavior.

What it does

Guides the creation of JavaScript and TypeScript tests and test infrastructure using established testing patterns.

When to use it

Use when setting up test infrastructure, writing unit, integration, frontend, or end-to-end tests, implementing TDD, or configuring continuous testing.

How to use it

It changes how the agent writes project tests by emphasizing structured assertions, isolated dependencies, edge cases, and observable behavior.

What you provide

  • An existing project

Uses

Good to know

  • cannot be undone: PostgreSQL
  • a credential is hard-coded: test_password

Latest review

What you need · 1

The database integration testing examples require a test database instance; this is needed for those examples, not for unit testing.


Access · 1

This skill

PostgreSQL

Write

Clears and drops test tables (irreversible)