Run any Skill in Manus
with one click
with one click
Run any Skill in Manus with one click
Get Started$pwd:
$ git log --oneline --stat
stars:8
forks:2
updated:February 10, 2026 at 17:05
SKILL.md
[HINT] Download the complete skill directory including SKILL.md and all related files
| 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: