{"schemaVersion":1,"id":"jest","name":"Jest","locale":"en","canonicalUrl":"https://base.akulich.dev/en/library/jest/","officialUrl":"https://github.com/jestjs/jest","isCatalog":false,"description":"A JavaScript test framework with test isolation, mocks, snapshot checks, and coverage reports for verifying code behavior.","tasks":["Capture JavaScript module behavior with tests","Compare actual results and required snapshots with expectations"],"categoryIds":["quality"],"subcategoryIds":["quality.testing"],"tags":["Jest","test","Development"],"aliases":["jestjs/jest","jest-testing","jestjs"],"platforms":[],"stack":[],"compatibility":null,"pricing":"free","freeUsage":"Code and local use under MIT.","paidUsage":"Compute, your own hosting, and external services are paid for separately if selected.","license":"MIT: code; dependencies have separate licenses.","selectionGuide":{"purpose":"Capture JavaScript module behavior with tests","chooseWhen":["Capture JavaScript module behavior with tests","Compare actual results and required snapshots with expectations"],"considerInstead":[],"requirements":["If the original call is unacceptable, set mockImplementation for spyOn; restore modified methods after the test."],"limitations":["Costs and limits of free use: Compute, your own hosting, and external services are paid for separately if selected.","Terms of use: MIT: code; dependencies have separate licenses.","spyOn tracks calls but invokes the original implementation by default, including its side effects."],"faq":[{"question":"What can you use for free in Jest?","answer":"Code and local use under MIT."},{"question":"What additional costs might arise with Jest?","answer":"Compute, your own hosting, and external services are paid for separately if selected."},{"question":"What terms of use matter for Jest?","answer":"MIT: code; dependencies have separate licenses."},{"question":"How do you get started with Jest?","answer":"Define unit tests and isolate external dependencies with mocks. Compare actual results and required snapshots with expectations. Run the check locally and save the report in CI."},{"question":"Why did jest.spyOn not stop the actual method call?","answer":"spyOn invokes the original method by default. To replace behavior, use mockImplementation or the corresponding mock. mockRestore or restoreAllMocks restore originals after the test; observing calls does not block them."}],"related":[],"sources":["https://github.com/jestjs/jest","https://raw.githubusercontent.com/jestjs/jest/HEAD/README.md","https://raw.githubusercontent.com/jestjs/jest/HEAD/LICENSE","https://www.open-source-tools.com/","https://raw.githubusercontent.com/jestjs/jest/main/README.md","https://raw.githubusercontent.com/jestjs/jest/main/LICENSE","https://jestjs.io/docs/jest-object"]},"selectionCheckedAt":null,"applicationGuide":{"goal":"Capture JavaScript module behavior with tests.","inputs":["One important workflow and its expected result.","A test environment with controlled data."],"steps":["Define unit tests and isolate external dependencies with mocks.","Compare actual results and required snapshots with expectations.","Run the check locally and save the report in CI."],"checks":["The check detects a deliberately broken workflow.","The result can be reproduced without depending on a personal session."]},"sources":["https://github.com/jestjs/jest","https://raw.githubusercontent.com/jestjs/jest/HEAD/README.md","https://raw.githubusercontent.com/jestjs/jest/HEAD/LICENSE","https://www.open-source-tools.com/","https://raw.githubusercontent.com/jestjs/jest/main/README.md","https://raw.githubusercontent.com/jestjs/jest/main/LICENSE","https://jestjs.io/docs/jest-object"],"checkedAt":"2026-10-06","reviewScope":"Purpose, the current repository license, and the boundaries between code, services, and models were reviewed. The product was not run or security-audited.","relatedIds":[],"dataVersion":"cbbe7123b47a5ae80983","type":"Test automation","kind":"tool","pricingNote":"Code and local use under MIT. Compute, your own hosting, and external services are paid for separately if selected.","notes":null,"labeledSources":[{"url":"https://github.com/jestjs/jest","label":"Official source"},{"url":"https://raw.githubusercontent.com/jestjs/jest/HEAD/README.md","label":"Official source"},{"url":"https://raw.githubusercontent.com/jestjs/jest/HEAD/LICENSE","label":"License"},{"url":"https://www.open-source-tools.com/","label":"Catalog / discovery source"},{"url":"https://raw.githubusercontent.com/jestjs/jest/main/README.md","label":"Official source"},{"url":"https://raw.githubusercontent.com/jestjs/jest/main/LICENSE","label":"Official source"},{"url":"https://jestjs.io/docs/jest-object","label":"Official source"}],"licenseGuides":[{"id":"mit","title":"MIT — permissive license","scope":null,"summary":"You can use, modify, distribute, and sell the code, including in a closed-source commercial product. When sharing copies or substantial portions of the code, retain the license text and copyright notice. You do not need to open-source your entire project; the author provides no warranties.","url":"https://opensource.org/license/mit"}],"entryIds":[],"composition":null}