{"library":"givens","type":"library","category":null,"description":"Givens is a testing utility designed to facilitate clean, maintainable, and side-effect-free test setups, primarily for JavaScript and TypeScript projects using Jest, Mocha, or Jasmine. Its behavior is inspired by RSpec's 'given' keyword, offering a familiar pattern for developers with Ruby backgrounds. The library helps prevent common testing pitfalls such as cross-contamination between tests, order-dependent tests, and unpredictable behavior when running subsets of tests (e.g., with `.only` or `.skip`). It achieves this by managing a cached, scoped value for 'given' variables, ensuring values are fresh for each test and correctly reverted across `describe` blocks. The current stable version is 1.3.9, with a recent cadence of security and dependency updates, indicating active maintenance rather than feature-heavy releases.","language":"javascript","status":"active","version":"1.3.9","tags":["javascript","jest","mocha","given","let","test","testing","unit","rspec","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install givens","imports":["import getGiven from 'givens';","import 'givens/setup';","import getGiven from 'givens'; interface MyVars { /* ... */ } const given = getGiven<MyVars>();"]},{"cmd":"yarn add givens","imports":[]},{"cmd":"pnpm add givens","imports":[]}],"homepage":null,"github":"https://github.com/enova/givens","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/givens","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/givens/compatibility"}}