jest-teamcity is a specialized Jest reporter designed to integrate test results with TeamCity CI/CD servers. Currently at version 1.12.0, this package provides detailed reporting, including test durations, pending test statuses, and full stack traces for failed tests, all formatted using TeamCity's service messages. It automatically groups tests into logical suites, enhancing readability and analysis within TeamCity's interface. Releases are generally infrequent, focusing on maintenance, dependency updates, and addressing specific edge cases or improvements in how Jest's internal APIs or TeamCity's expectations are handled. A key differentiator is its automatic activation based on the `TEAMCITY_VERSION` environment variable, ensuring it only outputs TeamCity-specific messages when running within that environment, while defaulting to standard Jest output otherwise. This prevents noisy output during local development.
npm install jest-teamcityVerified import paths — ran on the pinned version, not inferred.
Demonstrates how to install `jest-teamcity`, configure it in Jest, and enable its output via an environment variable for local testing or CI.
Ensure `TEAMCITY_VERSION` is defined in your CI/CD environment or locally (e.g., `export TEAMCITY_VERSION="some_value"`) when TeamCity output is desired.
Ensure you are using a compatible Jest version (typically latest stable is recommended) and your `jest.config.js` or `package.json` reporters array is correctly formatted.
Upgrade `jest-teamcity` to version 1.10.0 or newer to ensure robust reporting, especially for edge cases involving test suite setup/teardown failures.
Always include `"default"` as the first entry in your Jest `reporters` array unless you specifically intend to suppress standard console output.
Run `npm install --save-dev jest-teamcity` or `yarn add --dev jest-teamcity`. Verify that 'jest-teamcity' is spelled correctly in your Jest `reporters` array.
Ensure `TEAMCITY_VERSION` is set in your CI environment or locally (e.g., `export TEAMCITY_VERSION="some_version"` on Linux/macOS or `set TEAMCITY_VERSION=some_version` on Windows) before running tests.
Upgrade to `jest-teamcity` version 1.10.0 or newer to ensure proper handling of all test suite states.
No dependency data recorded yet.