$ 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
}
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 :(
The next Jest release will come out this week!
It got me too 馃槀
Please release this!
@timwu20 You can just use this meanwhile: https://gist.github.com/torifat/3ea2b8863ec38683ad2fdb22b3f2c904
Most helpful comment
The next Jest release will come out this week!