Fix issue for migrating jest plugin to 13.4.4 when the projects
may have a custom preset that
excludes the transform property
from the jest.config.js.
Just adds an if statement around the
loop for the transform property
ISSUES CLOSED: #8566
* fix(testing): create root babel config for babel-jest option
when creating a jest project with babel-jest a root babel.config.json file will be create if one
doesn't exist and babel deps install for allowing jest tests to run successfully
ISSUES CLOSED: #6782
* feat(testing): add migration for missing root babel config
* fix(testing): update tsconfig migration to not warn when no file found
use tsconfig.json references to find what other configs need to be updated. if non when we just exit
* fix(testing): update tests for migration changes
* fix(testing): include any spec. file names in pattern match
accounting for _spec. file names when generating 'test' pattern equivalents
* fix(testing): remove relance on tsconfig.references, walk for all tsconfigs to update
tsconfig.references is not always present. instead visit all files and check if they are tsconfig
json file. if so we update the include/exclude properties where a spec. pattern is found. if the
property isn't set then we do not update it.
* fix(testing): stream line update with devkit
* fix(testing): add .test. files to spec tsconfig template
add support for .test.ts and with supportTsx .test.{js|tsx|jsx} files
in the tsconfig.spec.json template.
Note each package that excludes testing files will need to be updated to
exclude the new files (coming in future commits)
* fix(angular): add .test.ts support in tsconfigs
add .test.ts in angular jest template
update angular generators to exclude test files
* fix(gatsby): add .test. file prefixes to tsconfig ignore
ignore the new .test.{js|ts|jsx|tsx} files added to jest configs
* fix(react): add .test. file prefix to app/lib tsconfigs
add .test.{ts|js|tsx|jsx} files to be excluded by app/lib tsconfig
* fix(node): add .test. file prefix to app/lib tsconfig
add .test.{ts|js|tsx|jsx} files to be excluded by app/lib tsconfig
ISSUES CLOSED: #7263
* fix(nest): update tests for new .test.ts files in tsconfig
update tests to account for changes in node generators which add .test.ts to the exclude of
tsconfigs
* fix(express): update tests to account for new tsconfig changes
updated snapshots
added new patterns for tsconfig
* fix(linter): update snapshots for new tsconfig changes
snapshot updated to include new .test.ts file changes for tsconfig
* fix(node): update testing to account for spec tsconfig changes
add .test.ts files in e2e tests
* fix(testing): add migration for tsconfig changes
initial migration and test for tsconfig changes
* chore(testing): add to migrations collection
add the update-ts-config-for-test-filenames to migrations
* fix(testing): fix filesystem issue with jest tests
mock readConfig to always return an basic config to prevent issues of not finding a config in non
linux environments, aka missing /root
* cleanup(testing): update error message
update message logged when tsconfig isn't found to mention what was trying to be accompished so it
can be manually updated if desired.
* fix(testing): fixing move tests and functionality
* fix(testing): fixing migration to no-op if getJestProjects() is already being used
* fix(misc): rming console.log statements
* feat(testing): updating nx to use getJestProjects() itself
* feat(testing): using getJestProjects() for new workspaces
* feat(testing): accomodating for getJestConfig() when adding new project
* feat(testing): migration for updating the base jest.config.js
* testing...
* fix(testing): fixing formatting in tests and bumping to next version
* fix(testing): fixing broken tests
* fix(testing): fixing test for jest init
* fix(testing): removing unnecessary test in jest project
* fix(testing): updating remove generator to work with jest utility fn
* fix(testing): fixing line break on package.json
* fix(testing): fixing import statement
* fix(testing): using AST to update the jest config contents
* fix(testing): fixing snapshot tests
* fix(testing): fixing describe to 12.6
* fix(testing): adding back in import statement to jest.config.js
* fix(testing): updating generated docs
* fix(nextjs): update babel setup to better support next apps
* fix(testing): remove babel-jest.config.json used in jest.config.js
- Fix `@nrwl/web/babel` to support Jest as well
* feat(core): update recommended extensions for new workspaces
* feat(core): fix vscode extensions not being generated, add migrations for workspace and jest to add extensions
* feat(core): add e2e to check .vscode/extensions.jon
* chore(core): fix logic for handling angular builders
* chore(core): fix e2e
* chore(core): revert change for angular-console to be default for everyone
* feat(testing): add projects into jest config
* chore(testing): update unit tests and fix presets with spreading a default
* chore(testing): fix node e2e
* chore(testing): review comment changes
* fix(testing): require jest config to resolve it better during migration
* fix(testing): require with appRootPath
* chore(testing): remove uneeded exports and imports
* 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
* feat(testing): update to jest-preset-angular v8.0.0 part 1
Updates to jest-preset-angular to v8.0.0, includes migrations to fix any existing projects affected
by the jest-preset-angular update.
closes#1979
* feat(testing): update jest-preset-angular to v8.0.0 part 2
Closed issues: #1979, #2165
Co-authored-by: Joshua D. Mentzer <mentzerj@trinity-health.org>
* feat(testing): update jest-preset-angular to v8.0.0 part 3
Co-authored-by: mentzerj <mentzerj@trinity-health.org>
Co-authored-by: Mehrad Rafigh <4339673+mehrad-rafigh@users.noreply.github.com>
* fix(testing): disable collectCoverage by default
Disabling collectCoverage by default as this causes issues with latest version of Jest
Temp fix#1531
* Adding back code coverage reporters
* feat(nx): add migration to update collectCoverage to false in jest.config.js
Added new migration script to update jest.config.js collectCoverage property to false
* refactor(nx): move migrations to @nrwl/jest
Move the collectCoverage migration to the jest package
* chore: refactor to use AST utils