Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: expect(...).toMatchObject is not a function #2195

Closed
r14c opened this issue Nov 30, 2016 · 6 comments
Closed

TypeError: expect(...).toMatchObject is not a function #2195

r14c opened this issue Nov 30, 2016 · 6 comments

Comments

@r14c
Copy link

r14c commented Nov 30, 2016

gist

$ node --version
v7.1.0
$ npm --version
3.10.9
$ yarn --version
0.17.2
jest version = 17.0.3
test framework = jasmine2
config = {
  "rootDir": "/Users/carlos/src/gitlab.com/citygro/broken-test",
  "name": "-Users-carlos-src-gitlab.com-citygro-broken-test",
  "setupFiles": [],
  "testRunner": "/Users/carlos/src/gitlab.com/citygro/broken-test/node_modules/jest-jasmine2/build/index.js",
  "transform": [
    [
      "^.+\\.jsx?$",
      "/Users/carlos/src/gitlab.com/citygro/broken-test/node_modules/babel-jest/build/index.js"
    ]
  ],
  "usesBabelJest": true,
  "automock": false,
  "bail": false,
  "browser": false,
  "cacheDirectory": "/var/folders/86/qrdp7g8d3370wtpgbjrws1g00000gn/T/jest",
  "coveragePathIgnorePatterns": [
    "/node_modules/"
  ],
  "coverageReporters": [
    "json",
    "text",
    "lcov",
    "clover"
  ],
  "expand": false,
  "globals": {},
  "haste": {
    "providesModuleNodeModules": []
  },
  "mocksPattern": "__mocks__",
  "moduleDirectories": [
    "node_modules"
  ],
  "moduleFileExtensions": [
    "js",
    "json",
    "jsx",
    "node"
  ],
  "moduleNameMapper": {},
  "modulePathIgnorePatterns": [],
  "noStackTrace": false,
  "notify": false,
  "preset": null,
  "resetMocks": false,
  "resetModules": false,
  "snapshotSerializers": [],
  "testEnvironment": "jest-environment-jsdom",
  "testPathDirs": [
    "/Users/carlos/src/gitlab.com/citygro/broken-test"
  ],
  "testPathIgnorePatterns": [
    "/node_modules/"
  ],
  "testRegex": "(/__tests__/.*|\\.(test|spec))\\.jsx?$",
  "testURL": "about:blank",
  "timers": "real",
  "transformIgnorePatterns": [
    "/node_modules/"
  ],
  "useStderr": false,
  "verbose": null,
  "watch": false,
  "cache": false,
  "watchman": true
}
@cpojer
Copy link
Member

cpojer commented Nov 30, 2016

Unfortunately that function hasn't been part of a public Jest release yet. It's currently on master. Unfortunately we have no way of versioning the website right now so the latest version of the docs is already online :(

@cpojer cpojer closed this as completed Nov 30, 2016
@cpojer
Copy link
Member

cpojer commented Nov 30, 2016

The next Jest release will come out this week!

@torifat
Copy link

torifat commented Dec 2, 2016

It got me too 😂

@timwu20
Copy link

timwu20 commented Dec 5, 2016

Please release this!

@torifat
Copy link

torifat commented Dec 5, 2016

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants