When a library (often an implicit dependency one) does not have `sourceRoot`,
`getSourceDirOfDependentProjects` returns an array with the problematic library path as `[undefined,
libs/some-other-lib]` which causes `createGlobPatternsForDependencies` to throw an error and
ultimately returns an empty `[]` instead of `[libs/some-other-lib]`.
This PR ensures
`getSourceDirOfDependentProjects` filters out `undefined` (`sourceRoot`) as well as logs a warning
to let the users know that they have libraries that are missing `sourceRoot` and Nx cannot calculate
their glob patterns
ISSUES CLOSED: #10871
* fix(testing): jest.preset.ts => jest.preset.js
* fix(testing): update to export default
* fix(testing): migration for moving to export default
* fix(testing): add eslint ignore comments for jest config properties
fixes: #10021
* fix(testing): update tsconfig.spec.json for next apps with project parserOptions
fixes: #9982
* fix(testing): prevent renaming root jest preset
fixes: #9973
* fix(testing): update snapshots for export default
* fix(testing): bump migration version to run
* fix(testing): make sure default jest tests pass for various projects
* fix(js): generate correct jest config for --compiler=swc --js
* feat(core): add nx.json, workspace.json, and project.json JSON schemas
ISSUES CLOSED: #8574, #2299
* fix(core): add ajv to test generated config files based on JSON schema
* fix(core): only add $schema to project.json if it is standalone and in create mode
* feat(core): add migration to add json schema to config files for 14.2.0
* fix(core): adjust schemas
* chore(core): adjust tests across repo to adhere to JSON schema if generated
* fix(core): construct the json schema object instead of using a boolean flag
* chore(core): add ajv tests for workspacejson and nxjson
* chore(core): remove unnecessary standalone check
* feat(testing): move jest config to .ts
move jest config and preset to ts files
ISSUES CLOSED: #8344
* fix(testing): update tests for jest.config.ts changes
update tests broken by renaming jest fils to ts files
* feat(core): add nx graph as alias of nx dep-graph
* docs(core): add note about old dep-graph syntax
* cleanup(core): formatting
* feat(core): formatting
* feat(core): formatting
Co-authored-by: Isaac Mann <isaacplmann+git@gmail.com>