Keep test-only modules and guards out of production paths
Production modules should not import test doubles or gate behavior on test-only environment flags.
#Metadata
#Why it matters
Test-only imports and NODE_ENV test branches can ship dead paths or accidental coupling to test harnesses.
#Remediation
Move helpers into shared neutral modules, guard test utilities behind dev-only entrypoints, and keep production code free of `NODE_ENV === 'test'` branches.
#Repository path
The generated metadata points to critiq-rules/libs/rules/catalog/rules/typescript/ts.testing.no-test-only-code-in-production.rule.yaml.