Jest config do not get update when lib or app is deleted by remove schematic
See original GitHub issueCurrent Behavior
When lib or app is deleted by remove schematic the root level jest.config.js is not updated by removing the entry of deleted project. I have to manually delete the entry from this file.
yarn nx generate remove <lib-name>
Expected Behavior
jest.config.js need to automatically update by deleting the entry of deleted project
Steps to Reproduce
Step 1: Create new lib with below command
yarn nx g @nrwl/node:library <lib-name>
Step 2: Check root level jest.config.js for entry of newly created lib as result of Step 1
Step 3: Delete lib created in Step 1 by below command
yarn nx generate remove <lib-name>
Step 4: Check root level jest.config.js again the entry of newly created lib as result of Step 1 is still there
Environment
Note: nx is shown as not found below because as i did not installed nx globally
nx : Not Found @nrwl/angular : Not Found @nrwl/cli : 10.3.0 @nrwl/cypress : 10.3.0 @nrwl/eslint-plugin-nx : 10.3.0 @nrwl/express : Not Found @nrwl/jest : 10.3.0 @nrwl/linter : 10.3.0 @nrwl/nest : Not Found @nrwl/next : 10.3.0 @nrwl/node : 10.3.0 @nrwl/react : 10.3.0 @nrwl/schematics : Not Found @nrwl/tao : 10.3.0 @nrwl/web : 10.3.0 @nrwl/workspace : 10.3.0 typescript : 4.0.3
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (4 by maintainers)
@etkachev My pleasure! I opened another issue for the move schematic and am currently adjusting the schematic. I already wrote the test for it, so I guess I will create a PR during the evening
@etkachev I already guessed it. I will try to open a seperate PR for the move schematics. Alright?