ErrLookup › jestjs/jest
jestjs/jest
Delightful JavaScript Testing. · TypeScript · ★ 45,460
Analyzed at f49721c78e on 2026-08-03. 227 documented errors.
| Code / Message | Type | Severity | Tags |
|---|---|---|---|
| babel-jest: Babel ignores ${slash(path.relative(cwd, filenam | exception | error | babel, jest, transform, configuration, monorepo |
| Could not find a "package.json" file in ${rootDir} | exception | error | create-jest, package-json, initialization, configuration |
| There is malformed json in ${packageJsonPath} | exception | error | create-jest, package-json, json, configuration |
| @jest/diff-sequences: ${name} typeof ${typeof arg} is not a | validation | error | diff-sequences, validation, type-error, precondition |
| @jest/diff-sequences: ${name} value ${arg} is not a safe int | validation | error | diff-sequences, validation, range-error, precondition |
| @jest/diff-sequences: ${name} value ${arg} is a negative int | validation | error | diff-sequences, validation, range-error, precondition |
| @jest/diff-sequences: ${name} typeof ${type} is not a functi | validation | error | diff-sequences, validation, type-error, callback |
| any() expects to be passed a constructor function. Please pa | validation | error | expect, asymmetric-matcher, type-error, validation |
| You must provide an array to ${this.toString()}, not '${type | validation | error | expect, asymmetric-matcher, type-error, array |
| You must provide an object to ${this.toString()}, not '${typ | validation | error | expect, asymmetric-matcher, type-error, object |
| Expected is not a string | validation | error | expect, asymmetric-matcher, string, validation |
| Expected is not a String or a RegExp | validation | error | expect, asymmetric-matcher, string, regex, validation |
| Expected is not a Number | validation | error | expect, asymmetric-matcher, number, validation |
| Precision is not a Number | validation | error | expect, asymmetric-matcher, number, validation |
| Expect takes at most one argument. | validation | error | expect, api-misuse, validation |
| received value must be a promise or a function returning a p | exception | error | expect, resolves, async, promise, api-misuse |
| Unexpected return from a matcher function. Matcher functions | exception | error | expect, custom-matcher, expect-extend, validation |
| expect.extend: `${key}` is not a valid matcher. Must be a fu | validation | error | expect, expect-extend, custom-matcher, type-error |
| expect.customEqualityTesters: Must be set to an array of Tes | validation | error | expect, equality-testers, type-error, validation |
| expected value must be a number | validation | error | jest, expect, type-validation, assertion, numeric, typescript |
| received value must be a number | validation | error | jest, expect, type-validation, assertion, numeric, async |
| expected value must be a function | validation | error | jest, expect, type-validation, assertion, classes, imports |
| received value must not be null nor undefined | validation | error | jest, expect, null-check, assertion, arrays, iterable |
| expected value must be a string if received value is a strin | validation | error | jest, expect, type-validation, assertion, string, regex |
| received value must have a length property whose value must | validation | error | jest, expect, type-validation, assertion, length, iterable |
| expected path must be a string or array | validation | error | jest, expect, type-validation, assertion, object-path, string |
| expected path must not be an empty array | validation | error | jest, expect, validation, assertion, object-path, array |
| received value must be a string | validation | error | jest, expect, type-validation, assertion, string, regex |
| expected value must be a string or regular expression | validation | error | jest, expect, type-validation, assertion, string, regex |
| received value must be a non-null object | validation | error | jest, expect, type-validation, assertion, object, async |
| expected value must be a non-null object | validation | error | jest, expect, type-validation, assertion, object |
| ${expectedArgument} must be a positive integer | validation | error | jest, expect, validation, assertion, spy, mock, off-by-one |
| received value must be a mock or spy function | validation | error | jest, expect, mock, spy, assertion, configuration |
| received value must be a mock function | validation | error | jest, expect, mock, spy, assertion, configuration |
| received value must be a function | validation | error | jest, expect, type-validation, assertion, error-handling, async |
| expected value must be a string or regular expression or cla | validation | error | jest, expect, type-validation, assertion, error-handling |
| Returning a Promise from "describe" is not supported. Tests | exception | error | jest-circus, async, describe, test-definition |
| A "describe" callback must not return a value. | exception | error | jest-circus, describe, test-definition |
| Todo must be called with only a description. | exception | error | jest-circus, test-todo, test-definition |
| Both --runInBand and --maxWorkers were specified, only one i | validation | error | jest-cli, cli-args, workers, runinband |
| Both --${key} and --watchAll were specified, but cannot be u | validation | error | jest-cli, cli-args, watch, onlychanged |
| Both --onlyFailures and --watchAll were specified, only one | validation | error | jest-cli, cli-args, watch, onlyfailures |
| The --findRelatedTests option requires file paths to be spec | validation | error | jest-cli, cli-args, findrelatedtests, precommit |
| The --maxWorkers (-w) option requires a number or string to | validation | error | jest-cli, cli-args, maxworkers, watch |
| The --selectProjects option requires the name of at least on | validation | error | jest-cli, cli-args, projects, selectprojects |
| The --ignoreProjects option requires the name of at least on | validation | error | jest-cli, cli-args, projects, ignoreprojects |
| The --config option requires a JSON string literal, or a fil | validation | error | jest-cli, cli-args, config, config-file |
| Cannot merge config in form of callback | validation | error | jest-config, mergeconfig, config, typeerror |
| Whoops! Two projects resolved to the same config path: ${Str | exception | error | jest-config, projects, config, monorepo |
| Jest: Cannot use configuration as an object without a file p | validation | error | jest-config, config, programmatic, rootdir |
| There was an error while parsing the `--config` argument as | validation | error | jest-config, config, json, cli-args |
| jest: No configuration found for any project. | validation | error | jest-config, config, projects, bootstrap |
| Cannot find module '${presetPath}' | exception | error | jest-config, preset, module-resolution, config |
| Could not resolve a module for a custom reporter. Module n | exception | error | jest-config, reporters, module-resolution, config |
| haste.enableSymlinks is incompatible with watchman | validation | error | jest-config, haste, watchman, symlinks, validation |
| seed value must be `-0x80000000` and `0x7fffffff` inclusive | validation | error | jest-config, seed, validation, randomize |
| The shard option requires a string in the format of <n>/<m>. | exception | error | cli, sharding, ci |
| The shard option requires 1-based values, received 0 or lowe | exception | error | cli, sharding, ci |
| The shard option <n>/<m> requires <n> to be lower or equal t | exception | error | cli, sharding, ci |
| jest.config.mts requires native TypeScript support. Ensure y | exception | error | typescript, esm, node, config |
| Jest: Failed to parse the TypeScript config file ${configPat | exception | error | typescript, config, loader |
| Jest: You can only define a single loader through docblocks, | exception | error | typescript, config, docblock, loader |
| Jest: '${loader}' is not a valid TypeScript configuration lo | exception | error | typescript, config, docblock, loader |
| Jest: '${loader}' is required for the TypeScript configurati | exception | error | typescript, config, loader, dependencies |
| "cwd" must be an absolute path. cwd: ${cwd} | exception | error | config, path, internal |
| Can't find a root directory while resolving a config file pa | exception | error | config, path, cli |
| Configuration in ${packageJson} is not valid. Jest expects t | validation | error | config, package-json, validation |
| Multiple configurations found Implicit config resolution d | validation | error | config, validation, cli |
| Could not find a config file based on provided values: path: | exception | error | config, cli, setup |
| For a percentage based memory limit a percentageReference mu | exception | error | memory, config, validation |
| Unexpected numerical input | exception | error | memory, config, validation |
| Unexpected input | exception | error | memory, config, validation |
| Changed files must be set when running with -o. | exception | error | cli, scm, changed-files, programmatic |
| Filter ${filterPath} did not return a valid test list | exception | error | cli, filter, config |
| Cannot find `global.gc` function. Please run node with `--ex | exception | error | node, memory, diagnostics, environment |
| ${moduleName} file must export a function at ${modulePath} | exception | error | config, global-hooks, typescript |
| Jest: Got error running ${moduleName} - ${modulePath}, reaso | exception | error | jest-core, global-setup, config, startup |
| Shard ${globalConfig.shard.shardIndex}/${globalConfig.shard. | exception | error | jest-core, sharding, test-sequencer, config |
| Watch plugin configuration error | validation | error | jest-core, watch-mode, watch-plugins, config |
| `.each` must only be called with an Array or Tagged Template | exception | error | jest-each, parameterized-tests, validation |
| `.each` must be called with an Array or Tagged Template Lite | exception | error | jest-each, parameterized-tests, validation, async |
| Error: `.each` called with an empty Tagged Template Literal | exception | error | jest-each, parameterized-tests, tagged-template, validation |
| Error: `.each` called with a Tagged Template Literal with no | exception | error | jest-each, parameterized-tests, tagged-template, validation |
| Error: `.each` called with an empty Array of table data. | exception | error | jest-each, parameterized-tests, validation, fixtures |
| Not enough arguments supplied for given headings: ${EXPECTED | exception | error | jest-each, parameterized-tests, tagged-template, validation |
| Table headings do not conform to expected format: ${EXPECTE | exception | error | jest-each, parameterized-tests, tagged-template, validation |
| Unable to forward JSDOM console output - neither sendTo nor | exception | error | jest-environment, jsdom, version-mismatch, dependency |
| JSDOM did not return a Window object | exception | error | jest-environment, jsdom, config, startup |
| Custom export conditions specified but they are not an array | exception | error | jest-environment, jsdom, config, exports |
| Custom export conditions specified but they are not an array | exception | error | jest-environment, node, config, exports |
| Ran ${this._maxLoops} ticks, and there are still more! Assum | exception | error | jest-fake-timers, legacy, infinite-loop, nexttick |
| Ran ${this._maxLoops} immediates, and there are still more! | exception | error | jest-fake-timers, legacy, infinite-loop, setimmediate |
| Ran ${this._maxLoops} timers, and there are still more! Assu | exception | error | jest-fake-timers, legacy, infinite-loop, setinterval |
| Do not import `@jest/globals` outside of the Jest test envir | exception | error | jest-globals, imports, runtime, bundling |
| The name `${name}` was looked up in the Haste module map. It | exception | error | jest-haste-map, module-resolution, duplicate, haste |
| Crawler retry failed: Original error: ${retryError.message | exception | error | haste-map, watchman, crawler, filesystem, retry |
| jest-haste-map: the `ignorePattern` option must be a RegExp | exception | error | haste-map, config, validation, typescript |
| jest-haste-map: enableSymlinks config option was set, but is | exception | error | haste-map, config, symlinks, watchman, validation |
| Duplicated files or mocks. Please check the console for more | exception | error | haste-map, module-collision, duplicate, config |
| `fsevents` unavailable (this watcher can only be used on Dar | exception | error | haste-map, watcher, fsevents, darwin, platform, native-module |
| Failed to start watch mode. | exception | error | haste-map, watcher, watch-mode, inotify, watchman, timeout |
| Cannot parse ${filePath} as JSON: ${error.message} | exception | error | haste-map, json, package-json, worker, parse-error |
| Jest: `failing` tests are only supported in `jest-circus`. | exception | error | jasmine2, test-runner, failing, circus, config |
| Spies must be created in a before function or a spec | exception | error | jasmine2, spy, spyon, test-structure, runnable |
| Missing second argument. It must be a callback function. | exception | error | jasmine2, describe, api-misuse, test-structure |
| Invalid second argument, ${specDefinitions}. It must be a ca | exception | error | jasmine2, describe, api-misuse, typeerror, test-structure |
| describe does not expect any arguments | exception | error | jasmine2, describe, api-misuse, arity, test-structure |
| Missing second argument. It must be a callback function. Per | exception | error | jasmine2, it, test, api-misuse, todo, test-structure |
| Invalid second argument, ${fn}. It must be a callback functi | exception | error | jasmine2, it, test, api-misuse, typeerror, test-structure |
| Tests cannot be nested. Test "${spec.description}" cannot ru | exception | error | jasmine2, it, nesting, api-misuse, test-structure |
| Todo must be called with only a description. | exception | error | jasmine2, todo, it, api-misuse, test-structure |
| Jasmine spies would overwrite the 'and' and 'calls' properti | exception | error | jasmine2, spy, createspy, property-collision |
| Argument passed to callFake should be a function, got ${fn} | exception | error | jasmine2, spy, callfake, typeerror, spy-strategy |
| Invalid first argument. It must be a callback function. | exception | error | jasmine2, lifecycle, callback, before-each |
| could not find an object to spy upon for ${methodName}() | exception | error | jasmine2, spy, spy-on, undefined |
| No method name supplied | exception | error | jasmine2, spy, spy-on, missing-argument |
| ${methodName}() method does not exist | exception | error | jasmine2, spy, spy-on, missing-method |
| ${methodName} has already been spied upon | exception | error | jasmine2, spy, spy-on, double-spy, respy |
| ${methodName} is not declared writable or has no setter | exception | error | jasmine2, spy, spy-on, readonly, frozen, descriptor |
| could not find an object to spy upon for ${propertyName} | exception | error | jasmine2, spy, spy-on-property, undefined |
| No property name supplied | exception | error | jasmine2, spy, spy-on-property, missing-argument |
| ${propertyName} property does not exist | exception | error | jasmine2, spy, spy-on-property, missing-property, descriptor |
| ${propertyName} is not declared configurable | exception | error | jasmine2, spy, spy-on-property, non-configurable, frozen |
| Property ${propertyName} does not have access type ${accessT | exception | error | jasmine2, spy, spy-on-property, accessor, get-set |
| ${propertyName} has already been spied upon | exception | error | jasmine2, spy, spy-on-property, double-spy, respy |
| Jest: concurrent test "${specFullName}" must return a Promis | exception | error | jasmine2, concurrent, promise, async, test |
| Jest: `failing` tests are only supported in `jest-circus`. | exception | error | jasmine2, concurrent, failing, jest-circus, config |
| Primitives cannot leak memory. You passed a ${typeof value}: | exception | error | leak-detector, primitive, finalization-registry, detect-leaks |
| this matcher must not have an expected argument | exception | error | matcher-utils, ensure-no-expected, matcher-error, zero-argument-matcher |
| received value must be a number or bigint | exception | error | matchers, type-error, numeric, jest-matcher-utils |
| expected value must be a number or bigint | exception | error | matchers, type-error, numeric, jest-matcher-utils |
| expected value must be a non-negative integer | exception | error | matchers, type-error, numeric, jest-matcher-utils, call-count |
| Cannot use spyOn on a primitive value; ${typeOfObject} given | exception | error | jest-mock, spyon, type-error, primitives |
| No property name supplied | exception | error | jest-mock, spyon, argument-error, missing-argument |
| Property `${methodKey}` does not exist in the provided objec | exception | error | jest-mock, spyon, missing-property, typo |
| Cannot spy on the `${methodKey}` property because it is not | exception | error | jest-mock, spyon, type-error, replaceproperty |
| Property `${propertyKey}` does not exist in the provided obj | exception | error | jest-mock, spyon, accessor, missing-property |
| Property `${propertyKey}` is not declared configurable | exception | error | jest-mock, spyon, accessor, configurable, frozen |
| Property `${propertyKey}` does not have access type ${access | exception | error | jest-mock, spyon, accessor, get-set-mismatch |
| Cannot spy on the ${propertyKey} property because it is not | exception | error | jest-mock, spyon, accessor, type-error |
| Cannot use replaceProperty on a primitive value; ${typeOfObj | exception | error | jest-mock, replaceproperty, type-error, primitives |
| Cannot replace the `${propertyKey}` property because it has | exception | error | jest-mock, replaceproperty, accessor, getter |
| Cannot replace the `${propertyKey}` property because it has | exception | error | jest-mock, replaceproperty, accessor, setter |
| Cannot replace the `${propertyKey}` property because it is a | exception | error | jest-mock, replaceproperty, spyon, type-error |
| notify reporter requires optional peer dependency "node-noti | exception | error | jest-reporters, notify, peer-dependency, missing-dependency |
| The option summaryThreshold should be a number | exception | error | jest-reporters, config, type-error, validation |
| Unable to load resolver at ${options.resolver} | exception | error | resolver, config, esm, async |
| Cannot find module '${moduleName}' from '${relativePath}' | exception | error | resolver, module-not-found, config, modulenamemapper |
| Resolver located at ${resolver} does not export anything | exception | error | resolver, config, exports |
| Resolver located at ${resolver} does not export a function o | exception | error | resolver, config, exports, validation |
| Invalid data URI | exception | error | esm, data-uri, imports |
| Missing data URI encoding | exception | error | esm, data-uri, wasm, encoding |
| Invalid data URI encoding: ${encoding} | exception | error | esm, data-uri, wasm, encoding |
| Attempting to import a mock without a factory | exception | error | esm, mocking, factory, unstable-mockmodule |
| `unstable_mockModule` must be passed a mock factory | exception | error | esm, mocking, factory, validation, unstable-mockmodule |
| `jest.advanceTimersByTimeAsync()` is not available when usin | exception | error | fake-timers, legacy, async, config |
| `jest.advanceTimersToNextFrame()` is not available when usin | exception | error | fake-timers, legacy, raf, config |
| `jest.advanceTimersToNextTimerAsync()` is not available when | exception | error | fake-timers, legacy, async, config |
| `jest.getRealSystemTime()` is not available when using legac | exception | error | fake-timers, legacy, time, config |
| `jest.runAllImmediates()` is only available when using legac | exception | error | fake-timers, legacy, setimmediate |
| `jest.runAllTimersAsync()` is not available when using legac | exception | error | fake-timers, legacy, async, config |
| `jest.runOnlyPendingTimersAsync()` is not available when usi | exception | error | fake-timers, legacy, async, config |
| `jest.setSystemTime()` is not available when using legacy fa | exception | error | fake-timers, legacy, time, config |
| `jest.setTimerTickMode()` is not available when using legacy | exception | error | fake-timers, legacy, tick-mode, config |
| Failed to get mock metadata: ${modulePath}\n\nSee: https://j | exception | error | mocking, automock, manual-mocks, introspection |
| You have requested '${globalVariable}' as a global variable, | exception | error | config, environment, globals, sandbox |
| ${callerName} cannot be nested inside another ${callerName} | exception | error | isolate-modules, module-registry, nesting |
| require() on a require.cache ESM entry is not supported | exception | error | esm, cjs-interop, require-cache |
| The first argument to require.resolve must be a string. Rece | exception | error | require-resolve, validation, null-check |
| Cannot resolve module '${moduleName}' from paths ['${paths}' | exception | error | require-resolve, module-resolution, paths |
| The first argument to require.resolve.paths must be a string | exception | error | require-resolve, validation, null-check |
| The first argument to require.resolve.paths must not be the | exception | error | require-resolve, validation, empty-string |
| Snapshot keys must end with a number. | exception | error | snapshot, snapshot-file, corrupt-file |
| Could not infer Prettier parser for file ${sourceFilePath} | exception | error | inline-snapshot, prettier, formatting |
| Custom snapshot resolver must implement a `${propName}` as a | exception | error | snapshot-resolver, config, type-error |
| Custom snapshot resolver functions must transform paths cons | exception | error | snapshot-resolver, config, consistency |
| Jest: Couldn't infer stack frame for inline snapshot. | exception | error | inline-snapshot, stack-trace, matcher |
| ${matcherHint(...)} Expected properties must be an object ${ | exception | error | snapshot, matcher, argument-validation |
| ${matcherHint(...)} Expected properties must be an object ${ | exception | error | snapshot, matcher, argument-validation, inline-snapshot |
| ${matcherHint(...)} Inline snapshot must be a string ${print | exception | error | snapshot, matcher, argument-validation, inline-snapshot |
| ${matcherHintFromConfig(...)} Snapshot matchers cannot be u | exception | error | snapshot, matcher, negation |
| ${matcherHintFromConfig(...)} Snapshot state must be initia | exception | error | snapshot, matcher, lifecycle, custom-runner |
| ${matcherHintFromConfig(...)} received value must be an obje | exception | error | snapshot, matcher, argument-validation, properties |
| ${matcherHint(...)} received value must be a function ${prin | exception | error | snapshot, matcher, argument-validation, tothrow |
| ${matcherHintFromConfig(...)} Received function did not thr | exception | error | jest-snapshot, assertion-failure, throw-matcher |
| jest-snapshot: Failed to parse ${sourceFilePath} | exception | error | jest-snapshot, babel, inline-snapshot, parse-error |
| Jest: no snapshot insert location found | exception | error | jest-snapshot, babel, inline-snapshot, ast |
| Jest: Multiple inline snapshots for the same call are not su | exception | error | jest-snapshot, inline-snapshot, ast, user-error |
| Jest: Couldn't locate all inline snapshots. | exception | error | jest-snapshot, inline-snapshot, ast, user-error |
| Could not infer Prettier parser for file ${filepath} | exception | error | jest-snapshot, prettier, inline-snapshot, config |
| ● Invalid transformer module: "${slash(transformPath)}" sp | exception | error | jest-transform, config, transformer, user-error |
| Jest: Transformers have not been loaded yet - make sure to r | exception | error | jest-transform, lifecycle, async, api-misuse |
| Jest was unable to load the transformer defined for ${filena | exception | error | jest-transform, internal, bug, cache |
| ● Invalid return value: `process()` or/and `processAsync() | exception | error | jest-transform, transformer, jest-28-upgrade, user-error |
| Invalid first argument, ${descriptor}. It must be a named cl | validation | error | jest-util, test-name, user-error, type-error |
| Jest: Failed to load ESM at ${filePath} - did you use a defa | exception | error | jest-util, esm, module-loading, user-error |
| Jest: Your version of Node does not support dynamic import - | exception | error | jest-util, node-version, esm, environment |
| Jest: requireOrImportModule path must be absolute, was "${fi | validation | error | jest-util, module-loading, paths, user-error |
| Option "${path}.${option}" must be of type: ${validTyp | validation | error | jest-validate, config, type-error, user-error |
| ${key} has to be of type string or number | validation | error | jest-validate, config, maxworkers, type-error, user-error |
| ${deprecationEntries[name](argv)} | validation | error | jest-validate, cli, deprecation, user-error |
| Queue implementation returned processed task | exception | error | jest-worker, task-queue, api-misuse, internal-contract |
| Missing method createWorker in WorkerPool | exception | error | |
| 'workerPath' must be absolute, got '${workerPath}' | validation | error | |
| Cannot define a method called ${name} | exception | error | |
| Farm is ended, no more calls can be done to it | exception | error | |
| "messageParent" can only be used inside a worker | exception | error | |
| Unexpected request from parent process: ${request[0]} | exception | error | |
| Child can only be used on a forked process | exception | error | |
| Unexpected request from parent process: ${request[0]} | exception | error | |
| Child can only be used on a forked process | exception | error | |
| ${error.message} | exception | error | |
| pretty-format: Plugin must return type "string" but instead | exception | error | |
| pretty-format: Unknown option "${key}". | validation | error | |
| pretty-format: Options "min" and "indent" cannot be used tog | validation | error | |
| pretty-format: Option "theme" must not be null. | validation | error | |
| pretty-format: Option "theme" must be of type "object" but i | validation | error | pretty-format, config, validation, theme, ansi-styles |
| pretty-format: Option "theme" has a key "${key}" whose value | validation | error | pretty-format, theme, ansi-styles, validation, highlight |
| Asymmetric matcher ${val.constructor.name} does not implemen | exception | error | pretty-format, asymmetric-matcher, jest, plugin, serialization |
| No exports found in package ${pkg.name} | exception | error | build, monorepo, esm, cjs, exports |
| Package '${pkg.name}' declares '@jest/test-utils' as depende | exception | error | build, monorepo, package-json, lint, test-utils |
| Package '${pkg.name}' declares '@jest/test-utils' as dev dep | exception | error | build, monorepo, typescript, tsconfig, references, test-utils |
| Package '${pkg.name}' does not declare '@jest/test-utils' as | exception | error | build, monorepo, typescript, tsconfig, references, test-utils, package-json |
| ${file} has the following non-node type references: ${refer | exception | error | build, typescript, declaration-files, dts, triple-slash, monorepo |
| Binary in package "${pkg.name}" with name "${binName}" at ${ | exception | error | build, package-json, bin, cli, monorepo |
| API Extractor completed with ${extractorResult.errorCount} e | exception | error | build, typescript, api-extractor, declaration-files, dts-bundle, monorepo |
| PR number must be a positive integer, got: ${prNumber} | validation | error | ci, changelog, validation, cli-args, build |