Skip to content
J

javascript-typescript-jest

Jest testing best practices for JavaScript and TypeScript projects

by githubFree

Launch
#2011in AI Skills
0In stores

Description

javascript-typescript-jest is an agent skill from the github/awesome-copilot collection that gives Jest testing best practices for JavaScrip…

Highlights

  • Test file naming and placement
  • Nested describe blocks and clear test names
  • Mocking with jest.mock and jest.spyOn
  • Async testing with resolves and rejects
  • Reset rules between tests
  • Installs with the skills CLI

Ratings & Reviews

No ratings yet

Be the first to rate javascript-typescript-jest.

People also visit

V

vitest

Vitest API and config reference (Jest-compatible)

AI Skills
Launch
J

javascript-pro

Writes, debugs, and refactors JavaScript code

AI Skills
Launch
T

test-master

Generates test files, creates mocking strategies, analyzes code coverage

AI Skills
Launch
M

migrate-to-shoehorn

Migrate test files from `as` type assertions to @total-typescript/shoehorn

AI Skills
Launch
N

nodejs-keccak256

Prevent Ethereum hashing bugs in JavaScript and TypeScript

AI Skills
Launch
T

typescript-review

Review TypeScript and JavaScript code changes for compliance

AI Skills
Launch

javascript-typescript-jest FAQ

Where should test files go?

Next to the code they test, or in a __tests__ directory, with a .test.ts or .test.js suffix.

When should I mock?

To isolate tests from external dependencies such as APIs and databases, using jest.mock or jest.spyOn.

Can mocks hide real bugs?

Yes. Some tests should also run against real components or services in a test environment.

How do I install it?

Run npx skills add https://github.com/github/awesome-copilot --skill javascript-typescript-jest.

What security audits does it have?

skills.sh lists three audits: Gen Agent Trust Hub Pass, Socket Pass and Snyk Pass.

What are the best javascript-typescript-jest alternatives?

Popular alternatives to javascript-typescript-jest include vitest, javascript-pro and test-master. See all javascript-typescript-jest alternatives

Developer Stuff

Badges