AI Slop Code Risk Monitor

jestjs/jest

SlopCodeMonitor badge for jestjs/jest Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

Delightful JavaScript Testing.

0.5 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for jestjs/jest, a TypeScript project with 45,467 GitHub stars. SynthScan examined 280,272 lines of code across 2881 source files, recording 104 pattern matches distributed across 6 syntactic categories. The legacy adjusted pattern signal is 0.5 (Low pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

0.5
Adjusted Signal
0.5
Raw Pattern Score
100%
Time Factor
2026-10-26
Last Push
45.5K
Stars
TypeScript
Language
280.3K
Lines of Code
2.9K
Files
104
Pattern Hits
2026-10-31
Scan Date
0.00
HC Hit Rate

Risk Review · Payload v1

Use each vector to guide manual verification of the underlying findings.

Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.

Cognitive Ownership Risk 1.5/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 84 finding(s).

Hallucinated Dependency & Supply Chain Risk 0.6/100 · LOW

Are imports declared and package/API names verified? 16 finding(s).

Agent Over-Engineering Ratio 1.4/100 · LOW

Are wrappers, guards, and repeated structures necessary? 70 finding(s).

PR Review Velocity Impact 2.3/100 · LOW

Which changes need focused human review? 104 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 0HIGH 4MEDIUM 4LOW 96

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 104 distinct pattern matches across 6 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Hyper-Verbose Identifiers66 hits · 66 pts
SeverityFileLineSnippetContext
LOWwebsite/blog/2017-12-18-jest-22.md28 function someFunctionWhichShouldThrow() {CODE
LOWwebsite/versioned_docs/version-29.7/ManualMocks.md66function summarizeFilesInDirectorySync(directory) {CODE
LOWwebsite/versioned_docs/version-30.0/ManualMocks.md66function summarizeFilesInDirectorySync(directory) {CODE
LOWwebsite/versioned_docs/version-30.5/ManualMocks.md66function summarizeFilesInDirectorySync(directory) {CODE
LOWwebsite/versioned_docs/version-30.4/ManualMocks.md66function summarizeFilesInDirectorySync(directory) {CODE
LOWdocs/ManualMocks.md66function summarizeFilesInDirectorySync(directory) {CODE
LOWexamples/manual-mocks/FileSummarizer.js5function summarizeFilesInDirectorySync(directory) {CODE
LOW…ckages/jest-runtime/src/internals/syntheticBuilders.ts106export function buildCjsAsEsmSyntheticModule(CODE
LOW…ckages/jest-runtime/src/internals/syntheticBuilders.ts183async function evaluateSyntheticModuleAsync(CODE
LOWpackages/jest-runtime/src/internals/EsmLoader.ts169function makeSourcePhaseUnsupportedError(CODE
LOWpackages/jest-matcher-utils/src/index.ts412export function replaceMatchedToAsymmetricMatcher(CODE
LOW…est-fake-timers/src/__tests__/legacyFakeTimers.test.ts448 global.process.nextTick(function infinitelyRecursingCallback() {CODE
LOW…est-fake-timers/src/__tests__/legacyFakeTimers.test.ts618 global.setTimeout(function infinitelyRecursingCallback() {CODE
LOW…est-fake-timers/src/__tests__/legacyFakeTimers.test.ts751 global.setTimeout(function infinitelyRecursingCallback() {CODE
LOW…est-fake-timers/src/__tests__/legacyFakeTimers.test.ts1620 fakedGlobal.setTimeout(function infinitelyRecursingCallback() {CODE
LOW…est-fake-timers/src/__tests__/modernFakeTimers.test.ts239 global.process.nextTick(function infinitelyRecursingCallback() {CODE
LOW…est-fake-timers/src/__tests__/modernFakeTimers.test.ts411 global.setTimeout(function infinitelyRecursingCallback() {CODE
LOW…est-fake-timers/src/__tests__/modernFakeTimers.test.ts1505 fakedGlobal.setTimeout(function infinitelyRecursingCallback() {CODE
LOWpackages/test-utils/src/ConditionalTest.ts79export function testWithLinkedSyntheticModule(CODE
LOWpackages/jest-reporters/src/getSummary.ts15function getValuesCurrentTestCases(CODE
LOWpackages/babel-jest/src/index.ts53function addIstanbulInstrumentation(CODE
LOWpackages/babel-jest/src/index.ts188 function mergeBabelTransformOptions(CODE
LOWpackages/jest-resolve/__benchmarks__/test.js49function resolveAllViaFindNodeModule() {CODE
LOWpackages/jest-resolve/src/shouldLoadAsEsm.ts26export function isExplicitlyCommonjsPackage(modulePath: string): boolean {CODE
LOWpackages/jest-watcher/src/lib/patternModeHelpers.ts23export function printRestoredPatternCaret(CODE
LOWpackages/jest-transform/src/ScriptTransformer.ts69async function waitForPromiseWithCleanup(CODE
LOW…es/jest-transform/src/enhanceUnexpectedTokenMessage.ts16export default function handlePotentialSyntaxError(CODE
LOW…es/jest-transform/src/enhanceUnexpectedTokenMessage.ts34export function enhanceUnexpectedTokenMessage(e: Error): Error {CODE
LOWpackages/jest-util/src/garbage-collection-utils.ts37export function initializeGarbageCollectionUtils(CODE
LOWpackages/jest-util/src/convertDescriptorToString.ts10export default function convertDescriptorToString(CODE
LOW…es/jest-util/src/__tests__/createProcessObject.test.ts12function requireCreateProcessObject() {CODE
LOWpackages/jest-core/src/getSelectProjectsMessage.ts48function getProjectsRunningMessage(CODE
LOWpackages/jest-core/src/getSelectProjectsMessage.ts63function getProjectNameListElement(CODE
LOWpackages/jest-core/src/getNoTestFoundPassWithNoTests.ts10export default function getNoTestFoundPassWithNoTests(): string {CODE
LOWpackages/jest-core/src/getConfigsOfProjectsToRun.ts11export default function getConfigsOfProjectsToRun(CODE
LOW…s/jest-core/src/getNoTestFoundRelatedToChangedFiles.ts12export default function getNoTestFoundRelatedToChangedFiles(CODE
LOWpackages/jest-core/src/getProjectNamesMissingWarning.ts12export default function getProjectNamesMissingWarning(CODE
LOWpackages/jest-core/src/lib/handleDeprecationWarnings.ts12export default function handleDeprecationWarnings(CODE
LOWpackages/jest-snapshot/src/SnapshotResolver.ts59function createDefaultSnapshotResolver(): SnapshotResolver {CODE
LOWpackages/jest-snapshot/src/SnapshotResolver.ts82async function createCustomSnapshotResolver(CODE
LOWpackages/jest-snapshot/src/SnapshotResolver.ts120function verifyConsistentTransformations(custom: SnapshotResolver) {CODE
LOWpackages/jest-message-util/src/index.ts119function checkForCommonEnvironmentErrors(error: string) {CODE
LOWpackages/jest-message-util/src/index.ts133function warnAboutWrongTestEnvironment(error: string, env: 'jsdom' | 'node') {CODE
LOWpackages/jest-message-util/src/index.ts504function flattenErrorStackWithSeen(CODE
LOWpackages/jest-message-util/src/index.ts640function failureDetailsToErrorOrStack(CODE
LOWpackages/jest-validate/src/condition.ts12function validationConditionSingle(CODE
LOWpackages/jest-mock/src/index.ts630 return function whenCalledWithDispatcherImpl(CODE
LOWpackages/jest-mock/src/__tests__/index.test.ts135 function getMockFnWithOriginalName(name) {CODE
LOWpackages/jest-jasmine2/src/treeProcessor.ts31function getNodeWithoutChildrenHandler(node: TreeNode, enabled: boolean) {CODE
LOWpackages/jest-jasmine2/src/treeProcessor.ts60 function getNodeWithChildrenHandler(node: TreeNode, enabled: boolean) {CODE
LOWpackages/jest-jasmine2/src/jasmineAsyncInstall.ts29function promisifyLifeCycleFunction(CODE
LOWpackages/jest-jasmine2/src/jasmine/JsApiReporter.ts79 function validateAfterAllExceptions({failedExpectations}: RunDetails) {CODE
LOWpackages/expect-utils/src/immutableUtils.ts20export function isImmutableUnorderedKeyed(source: unknown): boolean {CODE
LOWpackages/expect-utils/src/__tests__/isError.test.ts16 function testErrorFromDifferentContext(CODE
LOWpackages/jest-phabricator/README.md44 public function getEngineConfigurationName() {CODE
LOWpackages/jest-config/src/readConfigFileAndSetRootDir.ts33export default async function readConfigFileAndSetRootDir(CODE
LOWpackages/jest-config/src/normalize.ts485function validateExtensionsToTreatAsEsm(CODE
LOWe2e/runJest.ts153function normalizeStdoutAndStderrOnResult(CODE
LOWe2e/global-setup/invalidSetupWithNamedExport.js8function invalidSetupWithNamedExport(jestConfig): void {CODE
LOW…e/fake-timers/timer-limit/__tests__/timerLimit.test.js13 setTimeout(function infinitelyRecursingCallback() {CODE
6 more matches not shown…
Cross-Language Confusion (JS/TS)4 hits · 20 pts
SeverityFileLineSnippetContext
HIGH…kages/pretty-format/src/__tests__/prettyFormat.test.ts709 print(val: any) {CODE
HIGH…kages/pretty-format/src/__tests__/prettyFormat.test.ts727 print(val: unknown) {CODE
HIGH…kages/pretty-format/src/__tests__/prettyFormat.test.ts812 print(val: unknown, print: any) {CODE
HIGH…kages/pretty-format/src/__tests__/prettyFormat.test.ts832 print(_val, _print) {CODE
Over-Commented Block17 hits · 17 pts
SeverityFileLineSnippetContext
LOWwebsite/versioned_docs/version-29.7/SetupAndTeardown.md121// 1 - testCOMMENT
LOWwebsite/versioned_docs/version-30.0/SetupAndTeardown.md121// 1 - testCOMMENT
LOWwebsite/versioned_docs/version-30.5/SetupAndTeardown.md121// 1 - testCOMMENT
LOWwebsite/versioned_docs/version-30.4/SetupAndTeardown.md121// 1 - testCOMMENT
LOWdocs/SetupAndTeardown.md121// 1 - testCOMMENT
LOWpackages/jest-runtime/src/internals/Resolution.ts161 // name. Covers three shapes:COMMENT
LOWpackages/jest-runtime/src/internals/EsmLoader.ts201COMMENT
LOWpackages/jest-runtime/src/internals/EsmLoader.ts701 // nothing. A build whose file turns out to hold unmarked ESM syntaxCOMMENT
LOWpackages/jest-runtime/src/internals/EsmLoader.ts1101 // Node answers `import.meta.resolve('fs')` with `'node:fs'`, not a file URL -COMMENT
LOWpackages/diff-sequences/src/index.ts1/**COMMENT
LOWpackages/diff-sequences/src/index.ts21// k is kFCOMMENT
LOWpackages/diff-sequences/src/index.ts41// positive diagonals intersect right edgeCOMMENT
LOWpackages/jest-worker/src/workers/ChildProcessWorker.ts381 this._child.send(this._request);COMMENT
LOWpackages/jest-worker/src/workers/ChildProcessWorker.ts401 // In normal operation, the request is handled and cleared before theCOMMENT
LOWpackages/jest-source-map/src/SourceMapCache.ts41 return null;COMMENT
LOWpackages/jest-resolve/src/resolver.ts381 // QUESTION: should this be async?COMMENT
LOWpackages/jest-mock/src/index.ts781COMMENT
Fake / Example Data12 hits · 12 pts
SeverityFileLineSnippetContext
LOWwebsite/versioned_docs/version-29.7/SnapshotTesting.md228const stringWithRandomData = `<div id="${randomNumber}">Lorem ipsum</div>`;CODE
LOWwebsite/versioned_docs/version-30.0/SnapshotTesting.md228const stringWithRandomData = `<div id="${randomNumber}">Lorem ipsum</div>`;CODE
LOWwebsite/versioned_docs/version-30.5/SnapshotTesting.md226const stringWithRandomData = `<div id="${randomNumber}">Lorem ipsum</div>`;CODE
LOWwebsite/versioned_docs/version-30.4/SnapshotTesting.md226const stringWithRandomData = `<div id="${randomNumber}">Lorem ipsum</div>`;CODE
LOWdocs/SnapshotTesting.md226const stringWithRandomData = `<div id="${randomNumber}">Lorem ipsum</div>`;CODE
LOWpackages/jest-types/__typetests__/expect/base.test.ts359 name: 'John Doe',CODE
LOWpackages/jest-types/__typetests__/expect/base.test.ts369 name: 'John Doe',CODE
LOWpackages/jest-types/__typetests__/expect/base.test.ts382 name: 'John Doe',CODE
LOWpackages/jest-types/__typetests__/expect/base.test.ts398 name: 'John Doe',CODE
LOWpackages/jest-types/__typetests__/expect/base.test.ts408 name: 'John Doe',CODE
LOWpackages/jest-types/__typetests__/expect/base.test.ts421 name: 'John Doe',CODE
LOWe2e/runner-options/__tests__/dummy.test.js8test('placeholder', () => {CODE
Decorative Section Separators4 hits · 12 pts
SeverityFileLineSnippetContext
MEDIUM…tive-esm-cjs-require/__tests__/cjs-esm-interop.test.js17// ── __esModule interop ────────────────────────────────────────────────────────COMMENT
MEDIUM…tive-esm-cjs-require/__tests__/cjs-esm-interop.test.js34// ── plain CJS (no __esModule flag) ───────────────────────────────────────────COMMENT
MEDIUM…tive-esm-cjs-require/__tests__/cjs-esm-interop.test.js45// ── CJS with function module.exports ─────────────────────────────────────────COMMENT
MEDIUM…tive-esm-cjs-require/__tests__/cjs-esm-interop.test.js57// ── CJS-as-ESM caching (singleton) ───────────────────────────────────────────COMMENT
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippetContext
LOWpackages/jest-worker/__typetests__/testWorker.ts11export function doSomething(): void {}CODE