diff --git a/packages/workspace/src/generators/remove/remove.ts b/packages/workspace/src/generators/remove/remove.ts index 8782f46519599..8684ccd58bdf7 100644 --- a/packages/workspace/src/generators/remove/remove.ts +++ b/packages/workspace/src/generators/remove/remove.ts @@ -17,10 +17,10 @@ export async function removeGenerator(tree: Tree, schema: Schema) { const project = readProjectConfiguration(tree, schema.projectName); checkDependencies(tree, schema); checkTargets(tree, schema); + updateJestConfig(tree, schema, project); removeProject(tree, project); removeProjectConfig(tree, schema); updateTsconfig(tree, schema, project); - updateJestConfig(tree, schema, project); if (!schema.skipFormat) { await formatFiles(tree); }