{"library":"yeoman-test","type":"library","category":null,"description":"Yeoman-test provides a comprehensive suite of utilities designed for unit testing Yeoman generators. It simplifies the process of testing generator logic, file system modifications, and user interactions. The current stable version is 11.3.1. Releases occur frequently, often in conjunction with updates to core Yeoman ecosystem packages like `@yeoman/adapter`, `yeoman-environment`, and `yeoman-generator`, ensuring compatibility and leveraging new features. Key differentiators include its tight integration with Yeoman's `mem-fs` virtual file system, enabling robust assertions on generated files and content without touching the actual disk. It facilitates setting up temporary test directories, simulating command-line arguments and user prompts, and asserting file creation, content, and deletion. It also offers mechanisms for mocking composed generators, which is crucial for testing complex generator flows. The library aims to provide a controlled, isolated environment for predictable and reliable generator testing.","language":"javascript","status":"active","version":"11.3.1","tags":["javascript","yeoman","unit test","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install yeoman-test","imports":["import helpers, { result } from 'yeoman-test';","import helpers from 'yeoman-test'; await helpers.run('namespace');","import { type RunResult } from 'yeoman-test';"]},{"cmd":"yarn add yeoman-test","imports":[]},{"cmd":"pnpm add yeoman-test","imports":[]}],"homepage":"http://yeoman.io/authoring/testing.html","github":"https://github.com/yeoman/yeoman-test","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/yeoman-test","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/yeoman-test/compatibility"}}