Jest fails to run on Node.js 10.16.0 (LTS)
When attempting to run Jest on the latest master
, it bails early:
$ yarn jest
yarn run v1.16.0
$ yarn check-dependencies
$ yarn check --integrity
success Folder in sync.
$ jest
TypeError: Cannot read property 'includes' of undefined
at Object.<anonymous> (/home/markrian/dev/gdk-ee/gitlab/jest.config.js:22:37)
at Module._compile (internal/modules/cjs/loader.js:776:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:690:17)
at require (internal/modules/cjs/helpers.js:25:18)
at _default (/home/markrian/dev/gdk-ee/gitlab/node_modules/jest-config/build/readConfigFileAndSetRootDir.js:51:20)
at readConfig (/home/markrian/dev/gdk-ee/gitlab/node_modules/jest-config/build/index.js:160:59)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
It seems the path
property is not available on module objects in 10.x, which Jest's config is trying to access.
/cc @winh