File tree Expand file tree Collapse file tree 2 files changed +4
-15
lines changed
packages/angular/cli/src/commands/mcp/tools Expand file tree Collapse file tree 2 files changed +4
-15
lines changed Original file line number Diff line number Diff line change @@ -29,12 +29,6 @@ const TRANSFORMATIONS: Array<Transformation> = [
2929 'Converts tags for elements with no content to be self-closing (e.g., `<app-foo></app-foo>` becomes `<app-foo />`).' ,
3030 documentationUrl : 'https://angular.dev/reference/migrations/self-closing-tags' ,
3131 } ,
32- {
33- name : 'test-bed-get' ,
34- description :
35- 'Updates `TestBed.get` to the preferred and type-safe `TestBed.inject` in TypeScript test files.' ,
36- documentationUrl : 'https://angular.dev/guide/testing/dependency-injection' ,
37- } ,
3832 {
3933 name : 'inject' ,
4034 description : 'Converts usages of constructor-based injection to the inject() function.' ,
@@ -70,11 +64,6 @@ const TRANSFORMATIONS: Array<Transformation> = [
7064 '3. Run `ng g @angular/core:standalone` and select "Bootstrap the project using standalone APIs"' ,
7165 documentationUrl : 'https://angular.dev/reference/migrations/standalone' ,
7266 } ,
73- {
74- name : 'zoneless' ,
75- description : 'Migrates the application to be zoneless.' ,
76- documentationUrl : 'https://angular.dev/guide/zoneless' ,
77- } ,
7867] ;
7968
8069const modernizeInputSchema = z . object ( {
Original file line number Diff line number Diff line change @@ -35,16 +35,16 @@ describe('Modernize Tool', () => {
3535
3636 it ( 'should return instructions for multiple transformations' , async ( ) => {
3737 const instructions = await getInstructions ( {
38- transformations : [ 'self-closing-tags-migration' , 'test-bed-get ' ] ,
38+ transformations : [ 'self-closing-tags-migration' , 'inject ' ] ,
3939 } ) ;
4040
4141 const expectedInstructions = [
4242 'To run the self-closing-tags-migration migration, execute the following command: ' +
4343 '`ng generate @angular/core:self-closing-tags-migration`.\nFor more information, ' +
4444 'see https://angular.dev/reference/migrations/self-closing-tags.' ,
45- 'To run the test-bed-get migration, execute the following command: ' +
46- '`ng generate @angular/core:test-bed-get `.\nFor more information, ' +
47- 'see https://angular.dev/guide/testing/dependency-injection .' ,
45+ 'To run the inject migration, execute the following command: ' +
46+ '`ng generate @angular/core:inject `.\nFor more information, ' +
47+ 'see https://angular.dev/reference/migrations/inject-function .' ,
4848 ] ;
4949
5050 expect ( instructions ?. sort ( ) ) . toEqual ( expectedInstructions . sort ( ) ) ;
You can’t perform that action at this time.
0 commit comments