File tree Expand file tree Collapse file tree 2 files changed +1
-15
lines changed
packages/angular/cli/src/commands/mcp/tools Expand file tree Collapse file tree 2 files changed +1
-15
lines changed Original file line number Diff line number Diff line change @@ -29,12 +29,6 @@ const TRANSFORMATIONS: Array<Transformation> = [
29
29
'Converts tags for elements with no content to be self-closing (e.g., `<app-foo></app-foo>` becomes `<app-foo />`).' ,
30
30
documentationUrl : 'https://angular.dev/reference/migrations/self-closing-tags' ,
31
31
} ,
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
- } ,
38
32
{
39
33
name : 'inject' ,
40
34
description : 'Converts usages of constructor-based injection to the inject() function.' ,
@@ -70,11 +64,6 @@ const TRANSFORMATIONS: Array<Transformation> = [
70
64
'3. Run `ng g @angular/core:standalone` and select "Bootstrap the project using standalone APIs"' ,
71
65
documentationUrl : 'https://angular.dev/reference/migrations/standalone' ,
72
66
} ,
73
- {
74
- name : 'zoneless' ,
75
- description : 'Migrates the application to be zoneless.' ,
76
- documentationUrl : 'https://angular.dev/guide/zoneless' ,
77
- } ,
78
67
] ;
79
68
80
69
const modernizeInputSchema = z . object ( {
Original file line number Diff line number Diff line change @@ -35,16 +35,13 @@ describe('Modernize Tool', () => {
35
35
36
36
it ( 'should return instructions for multiple transformations' , async ( ) => {
37
37
const instructions = await getInstructions ( {
38
- transformations : [ 'self-closing-tags-migration' , 'test-bed-get' ] ,
38
+ transformations : [ 'self-closing-tags-migration' ] ,
39
39
} ) ;
40
40
41
41
const expectedInstructions = [
42
42
'To run the self-closing-tags-migration migration, execute the following command: ' +
43
43
'`ng generate @angular/core:self-closing-tags-migration`.\nFor more information, ' +
44
44
'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.' ,
48
45
] ;
49
46
50
47
expect ( instructions ?. sort ( ) ) . toEqual ( expectedInstructions . sort ( ) ) ;
You can’t perform that action at this time.
0 commit comments