Datagrok package unit testing setup

★ 7.7 · testing

With add-package-tests, Claude Code sets up and writes unit tests for Datagrok packages using the platform's custom test framework. It walks through the full workflow: initializing test support via `grok create --test` or `grok add tests`, creating TypeScript test files in `src/tests/` using `category`, `test`, and `expect` from `@datagrok-libraries/utils/src/test`, registering those files in `src/package-test.ts`, and running tests with `grok test` along with flags like `--host`, `--gui`, `--category`, and `--test`. Unstable tests can be skipped using the `skipReason` option with a Jira ticket key, and simple functions support inline `//test:` annotations in the function header for quick input/output validation. The skill is aimed at Datagrok package developers who need to build test coverage from scratch or extend an existing package with structured, maintainable tests.