* feat(testing): add util to update jest configs.
* feat(testing): place configurations in jest config file rather than just the builder
* feat(testing): create migration and unit tests
* feat(testing): fix jest template
* feat(testing): fix jest template to correct unit tests
* feat(testing): include globals.ts-jest for all non babel configs
* feat(testing): include globals.ts-jest for node e2e
* feat(testing): fix migration to run properly. Also check for angular tests using the setupfile rather than builder
* feat(testing): clean up jest config functions and fix errors with some migrations
* feat(testing): add new line to package.json
* feat(testing): update object check to actually check for undefined
* chore(testing): loop through all project targets as well as targets
* chore(testing): update migration to be 10.0.0-beta.2
Fixes runNxNewCommand so plugin e2e tests will work by passing --preset=empty to new proj.
ISSUES CLOSED: #3253
Co-authored-by: root <root@Kyle.localdomain>
* feat(core): adds configurable base branch in nx.json
new field in nx.json - defaultBranch
ISSUES CLOSED: #1791
* feat(core): split affected into config options for base and head in nx.json
Co-authored-by: agriggs <alex.griggs@gmail.com>
* feat(react): make React schematics use babel-jest by default
The babelJest option was removed from the React application
and library schematics and set to true by default
ISSUES CLOSED: 2365
* feat(react): remove babelJest option test
Co-authored-by: Isaac Mann <isaacplmann@users.noreply.github.com>
Co-authored-by: Isaac Mann <isaacplmann@users.noreply.github.com>
Co-authored-by: Isaac Mann <isaacplmann@users.noreply.github.com>
* fix(core): use typescript module resolution only for linting
* fix(core): fix unit tests
* fix(core): pass npm scope to target project locator for fallback
* chore(core): move comment about npmscope
* fix(core): split namespace for library dependencies
npm deps have `npm:` included in their names, and we should not check that namespace when looking into the package.json
* fix(core): review changes
This change adds a new schematic that generates a migration for an Nx plugin. The user can specify the version for the migration, and optionally add a custom name, description, and whether or not to include package.json updates.