# Testing signals — stylelint/stylelint

> Canonical page: https://codevetter.com/unpack/stylelint/testing-signals

# Testing signals — stylelint/stylelint

Scanned commit bc06c7cdb1413de3d8dc939b33af138ab7e59df1 (2026-10-01). Generated by codevetter codevetter 1.15.0 on 2026-10-02.

Source inspection; upstream code and tests were not executed.

Tests and CI were inspected, not executed; no passing result or measured coverage is asserted. The repository combines Jest rule schemas, integration tests, snapshot system tests, and selected node:test suites. The inspected tests demonstrate substantial behavioral specifications, but this bounded review does not establish exhaustive coverage or identify every untested branch.
- package.json configures Jest with jest-preset-stylelint, a Node environment, lib/system-tests/.changeset roots, V8 coverage, and global 90% thresholds; these are configured targets, not observed results. — [package.json#L82-121](https://github.com/stylelint/stylelint/blob/bc06c7cdb1413de3d8dc939b33af138ab7e59df1/package.json#L82-L121)
- jest.setup.mjs exposes testRule and testRuleConfigs against the public lint API; setupAfterEnv clears emitted-warning state after each test. — [jest.setup.mjs#L1-8](https://github.com/stylelint/stylelint/blob/bc06c7cdb1413de3d8dc939b33af138ab7e59df1/jest.setup.mjs#L1-L8) [jest.setupAfterEnv.mjs#L1-5](https://github.com/stylelint/stylelint/blob/bc06c7cdb1413de3d8dc939b33af138ab7e59df1/jest.setupAfterEnv.mjs#L1-L5)
- The inspected color-no-invalid-hex rule tests specify accepted alpha hex forms, quoted strings, URL fragments, and rejected hex values with exact start/end positions. — [lib/rules/color-no-invalid-hex/__tests__/index.mjs#L6-82](https://github.com/stylelint/stylelint/blob/bc06c7cdb1413de3d8dc939b33af138ab7e59df1/lib/rules/color-no-invalid-hex/__tests__/index.mjs#L6-L82)
- standalone-fix tests specify fixed string output, config-enabled fixing, ignored inputs, and inline-disable behavior; edit-information tests specify replacement text/ranges and disableFix handling. — [lib/__tests__/standalone-fix.test.mjs#L18-65](https://github.com/stylelint/stylelint/blob/bc06c7cdb1413de3d8dc939b33af138ab7e59df1/lib/__tests__/standalone-fix.test.mjs#L18-L65) [lib/__tests__/standalone-fix.test.mjs#L68-105](https://github.com/stylelint/stylelint/blob/bc06c7cdb1413de3d8dc939b33af138ab7e59df1/lib/__tests__/standalone-fix.test.mjs#L68-L105) [lib/__tests__/standalone-compute-edit-info.test.mjs#L5-69](https://github.com/stylelint/stylelint/blob/bc06c7cdb1413de3d8dc939b33af138ab7e59df1/lib/__tests__/standalone-compute-edit-info.test.mjs#L5-L69)
- standalone-cache tests inspect persisted cache entries, changed-file selection, config invalidation, and exclusion of error/warning files; their setup and cleanup perform filesystem mutations. — [lib/__tests__/standalone-cache.test.mjs#L38-144](https://github.com/stylelint/stylelint/blob/bc06c7cdb1413de3d8dc939b33af138ab7e59df1/lib/__tests__/standalone-cache.test.mjs#L38-L144)
- CLI tests specify flag parsing; suppression tests mock process streams and check conflicting flags/stdin rejection; plugin tests exercise relative and absolute modules through PostCSS. — [lib/__tests__/cli.test.mjs#L31-99](https://github.com/stylelint/stylelint/blob/bc06c7cdb1413de3d8dc939b33af138ab7e59df1/lib/__tests__/cli.test.mjs#L31-L99) [lib/__tests__/cli-suppressions.test.mjs#L22-92](https://github.com/stylelint/stylelint/blob/bc06c7cdb1413de3d8dc939b33af138ab7e59df1/lib/__tests__/cli-suppressions.test.mjs#L22-L92) [lib/__tests__/plugins.test.mjs#L47-104](https://github.com/stylelint/stylelint/blob/bc06c7cdb1413de3d8dc939b33af138ab7e59df1/lib/__tests__/plugins.test.mjs#L47-L104)
- System case 001 snapshots both filesystem and string-input APIs; snapshot preparation normalizes sources and removes private PostCSS results. The contributor guide explicitly describes system tests as real-use-case checks rather than comprehensive coverage. — [system-tests/001/fs.test.mjs#L7-16](https://github.com/stylelint/stylelint/blob/bc06c7cdb1413de3d8dc939b33af138ab7e59df1/system-tests/001/fs.test.mjs#L7-L16) [system-tests/001/no-fs.test.mjs#L7-16](https://github.com/stylelint/stylelint/blob/bc06c7cdb1413de3d8dc939b33af138ab7e59df1/system-tests/001/no-fs.test.mjs#L7-L16) [system-tests/systemTestUtils.mjs#L37-58](https://github.com/stylelint/stylelint/blob/bc06c7cdb1413de3d8dc939b33af138ab7e59df1/system-tests/systemTestUtils.mjs#L37-L58) [docs/contributor-guide/system-tests.md#L3-14](https://github.com/stylelint/stylelint/blob/bc06c7cdb1413de3d8dc939b33af138ab7e59df1/docs/contributor-guide/system-tests.md#L3-L14)
- CI declares Node 20/22/24/26 across three OS families, a separate Node-24 coverage job, and an explicitly enabled Yarn PnP run; the default-gated PnP suite packages and installs dependencies, so ordinary Jest coverage does not imply it ran. — [.github/workflows/ci.yml#L22-34](https://github.com/stylelint/stylelint/blob/bc06c7cdb1413de3d8dc939b33af138ab7e59df1/.github/workflows/ci.yml#L22-L34) [.github/workflows/ci.yml#L48-71](https://github.com/stylelint/stylelint/blob/bc06c7cdb1413de3d8dc939b33af138ab7e59df1/.github/workflows/ci.yml#L48-L71) [system-tests/006/yarn-pnp.test.mjs#L37-38](https://github.com/stylelint/stylelint/blob/bc06c7cdb1413de3d8dc939b33af138ab7e59df1/system-tests/006/yarn-pnp.test.mjs#L37-L38) [system-tests/006/yarn-pnp.test.mjs#L85-125](https://github.com/stylelint/stylelint/blob/bc06c7cdb1413de3d8dc939b33af138ab7e59df1/system-tests/006/yarn-pnp.test.mjs#L85-L125)

Every claim links to its cited files at the pinned commit. Citations identify source evidence; they do not establish runtime correctness. Independent CodeVetter scan — not reviewed by upstream maintainers.

## Public product links

- [CodeVetter](https://codevetter.com/)
- [Download](https://codevetter.com/download)
- [Documentation](https://codevetter.com/docs/)
- [Source](https://github.com/Codevetter/codevetter)
