Skip to content

[Bug]: Unknown option testTimeout validation warning when used in project specific config  #14513

@saevarma

Description

@saevarma

Version

29.7.0

Steps to reproduce

Example steps (replace with your own):

  1. Clone my repo at https://github.com/saevarma/jest-testtimeout-repro/tree/main
  2. yarn
  3. yarn test --projects src/packages/sum/jest.config.ts
  4. You should see the validation warning displayed in terminal
● Validation Warning:

  Unknown option "testTimeout" with value 1 was found.
  This is probably a typing mistake. Fixing it will remove this message.

  Configuration Documentation:
  https://jestjs.io/docs/configuration

Expected behavior

No warning displayed in the terminal as this should be a known option.

Actual behavior

Validation warning displayed in terminal about unknown option, even though Jest respects and uses the value.

Additional context

No response

Environment

System:
    OS: macOS 13.4.1
    CPU: (8) arm64 Apple M1
  Binaries:
    Node: 18.16.0 - ~/.volta/tools/image/node/18.16.0/bin/node
    Yarn: 3.5.1 - ~/.volta/tools/image/yarn/4.0.0-rc.44/bin/yarn
    npm: 9.5.1 - ~/.volta/tools/image/node/18.16.0/bin/npm
  npmPackages:
    jest: ^29.7.0 => 29.7.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions