{"library":"textmate-grammar-test","type":"library","category":null,"description":"This package provides a comprehensive test runner for validating TextMate grammars against the same engine used by VS Code. It offers both unit and snapshot testing capabilities, enabling developers to write assertions against token scopes and to easily track changes in grammar tokenization over time. The current stable version is 0.6.0, with minor releases occurring relatively frequently, driven by performance improvements, bug fixes, and feature enhancements. It serves as a modern and actively maintained successor to the `vscode-tmgrammar-test` package, featuring an updated codebase and enhanced functionality. Key differentiators include its direct validation against the VS Code TextMate engine, robust snapshot testing with an update mechanism, and detailed unit testing syntax for precise scope assertions, including negative assertions and line start token targeting.","language":"javascript","status":"active","version":"0.6.0","tags":["javascript","test","unit-test","textmate","tmgrammar","grammar","visual","studio","code"],"last_verified":"Wed May 27","install":[{"cmd":"npm install textmate-grammar-test","imports":["import { runUnitTests } from 'textmate-grammar-test';","import { runSnapshotTests } from 'textmate-grammar-test';","npx textmate-grammar-test"]},{"cmd":"yarn add textmate-grammar-test","imports":[]},{"cmd":"pnpm add textmate-grammar-test","imports":[]}],"homepage":null,"github":"https://github.com/serkonda7/textmate-grammar-test","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/textmate-grammar-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/textmate-grammar-test/compatibility"}}