with one click
jest
Jest JavaScript testing framework with snapshots. Use for JS testing.
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Jest JavaScript testing framework with snapshots. Use for JS testing.
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
Android Studio IDE with emulator and profiler. Use for Android development.
Atom hackable text editor from GitHub. Use for extensible editing.
Babel JavaScript compiler for compatibility. Use for transpiling.
Biome fast formatter and linter. Use for code quality.
Bitbucket Git repository hosting with Pipelines. Use for Atlassian teams.
Confluence team documentation platform. Use for documentation.
| name | jest |
| description | Jest JavaScript testing framework with snapshots. Use for JS testing. |
Jest is a delightful JavaScript Testing Framework with a focus on simplicity. It works with projects using: Babel, TypeScript, Node, React, Angular, Vue, and more.
// sum.js
function sum(a, b) {
return a + b;
}
module.exports = sum;
// sum.test.js
const sum = require("./sum");
test("adds 1 + 2 to equal 3", () => {
expect(sum(1, 2)).toBe(3);
});
Jest uses "matchers" to test values.
toBe(value): Exact equality (Object.is).toEqual(value): Recursive equality (great for Objects/Arrays).toContain(item): Checks if an array contains an item.jest.fn() creates a mock function. You can track calls, arguments, and instances.
const mockCallback = jest.fn((x) => 42 + x);
forEach([0, 1], mockCallback);
expect(mockCallback.mock.calls.length).toBe(2);
Jest supports async/await.
test("data is peanut butter", async () => {
const data = await fetchData();
expect(data).toBe("peanut butter");
});
Do:
test.each: For data-driven tests. Avoid writing valid/invalid test cases manually 10 times.jest.mock.Don't: