{"library":"test-pantry","type":"library","category":null,"description":"Test Pantry is a JavaScript test factory library for creating test data in a simple, fluid manner. Current stable version is 1.7.1. It uses a 'pantry' instance where you define recipes for objects (factories), then call them to generate instances. Key features include support for traits (mixing multiple factories), dynamic properties via functions, after-build hooks, sequence counters via `this.count`, list generation by passing a number, and alternative call syntax (e.g., `pantry.recipeName()`). Unlike libraries like Factory Bot or Rosie, Test Pantry emphasizes a minimalist JavaScript-native API with chaining and UMD support, though it has not seen recent updates and relies on UMD builds without ESM, which may cause issues in modern environments.","language":"javascript","status":"maintenance","version":"1.7.1","tags":["javascript","testing","factory"],"last_verified":"Sat May 09","install":[{"cmd":"npm install test-pantry","imports":["import TestPantry from 'test-pantry'","const pantry = new TestPantry()","pantry.recipeFor('user', { name: 'Alice' })"]},{"cmd":"yarn add test-pantry","imports":[]},{"cmd":"pnpm add test-pantry","imports":[]}],"homepage":null,"github":"https://github.com/ndp/test-pantry","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/test-pantry","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}