Skip to content

expect.any throws a type error #1520

Closed
Closed
@chrisjcodes

Description

@chrisjcodes

If you are reporting a bug, please fill in below. Otherwise feel free to remove this template entirely.

Can you reproduce the problem with latest npm?

Reproducible with 18.1.0

Description

http://stackoverflow.com/questions/41942411/typeerror-expect-any-is-not-a-function

Expected behavior

expect.any(Constructor) should work as listed in the docs for Jest

Actual behavior

Throws a TypeError

Environment

NPM v3.10.3
Node v6.6.0

  1. Operating system: OSX
  2. Browser and version: Chrome, latest(56)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions