@@ -10,11 +10,11 @@ import {
1010import { rmSync } from 'node:fs' ;
1111import { join } from 'node:path' ;
1212
13- describe ( 'nx_project_details filter ' , ( ) => {
13+ describe ( 'nx_project_details select ' , ( ) => {
1414 let invokeMCPInspectorCLI : Awaited <
1515 ReturnType < typeof createInvokeMCPInspectorCLI >
1616 > ;
17- const workspaceName = uniq ( 'nx-mcp-project-details-filter ' ) ;
17+ const workspaceName = uniq ( 'nx-mcp-project-details-select ' ) ;
1818 const testWorkspacePath = join ( e2eCwd , workspaceName ) ;
1919
2020 beforeAll ( async ( ) => {
@@ -33,7 +33,7 @@ describe('nx_project_details filter', () => {
3333 rmSync ( testWorkspacePath , { recursive : true , force : true } ) ;
3434 } ) ;
3535
36- it ( 'should return full project details when no filter is provided' , ( ) => {
36+ it ( 'should return full project details when no select is provided' , ( ) => {
3737 const result = invokeMCPInspectorCLI (
3838 testWorkspacePath ,
3939 '--method tools/call' ,
@@ -61,16 +61,16 @@ describe('nx_project_details filter', () => {
6161 expect ( result . content [ 2 ] ?. text ) . toContain ( 'External Dependencies:' ) ;
6262 } ) ;
6363
64- it ( 'should filter to root path using dot notation' , ( ) => {
64+ it ( 'should select to root path using dot notation' , ( ) => {
6565 const result = invokeMCPInspectorCLI (
6666 testWorkspacePath ,
6767 '--method tools/call' ,
6868 '--tool-name nx_project_details' ,
6969 `--tool-arg projectName="${ workspaceName } "` ,
70- '--tool-arg filter ="root"' ,
70+ '--tool-arg select ="root"' ,
7171 ) ;
7272
73- // Should have 1 content block with the filtered value
73+ // Should have 1 content block with the selected value
7474 expect ( result . content ) . toHaveLength ( 1 ) ;
7575 const text = result . content [ 0 ] ?. text ;
7676 // Should start with "Project Details: " prefix and contain the root value
@@ -81,13 +81,13 @@ describe('nx_project_details filter', () => {
8181 expect ( text ) . not . toContain ( '"name"' ) ;
8282 } ) ;
8383
84- it ( 'should filter to name field' , ( ) => {
84+ it ( 'should select to name field' , ( ) => {
8585 const result = invokeMCPInspectorCLI (
8686 testWorkspacePath ,
8787 '--method tools/call' ,
8888 '--tool-name nx_project_details' ,
8989 `--tool-arg projectName="${ workspaceName } "` ,
90- '--tool-arg filter ="name"' ,
90+ '--tool-arg select ="name"' ,
9191 ) ;
9292
9393 expect ( result . content ) . toHaveLength ( 1 ) ;
@@ -96,13 +96,13 @@ describe('nx_project_details filter', () => {
9696 expect ( text ) . toContain ( `"${ workspaceName } "` ) ;
9797 } ) ;
9898
99- it ( 'should filter to nested targets.build path' , ( ) => {
99+ it ( 'should select to nested targets.build path' , ( ) => {
100100 const result = invokeMCPInspectorCLI (
101101 testWorkspacePath ,
102102 '--method tools/call' ,
103103 '--tool-name nx_project_details' ,
104104 `--tool-arg projectName="${ workspaceName } "` ,
105- '--tool-arg filter ="targets.build"' ,
105+ '--tool-arg select ="targets.build"' ,
106106 ) ;
107107
108108 expect ( result . content ) . toHaveLength ( 1 ) ;
@@ -114,13 +114,13 @@ describe('nx_project_details filter', () => {
114114 expect ( text ) . not . toContain ( '"targets"' ) ;
115115 } ) ;
116116
117- it ( 'should filter to deeply nested targets.build.executor path' , ( ) => {
117+ it ( 'should select to deeply nested targets.build.executor path' , ( ) => {
118118 const result = invokeMCPInspectorCLI (
119119 testWorkspacePath ,
120120 '--method tools/call' ,
121121 '--tool-name nx_project_details' ,
122122 `--tool-arg projectName="${ workspaceName } "` ,
123- '--tool-arg filter ="targets.build.executor"' ,
123+ '--tool-arg select ="targets.build.executor"' ,
124124 ) ;
125125
126126 expect ( result . content ) . toHaveLength ( 1 ) ;
@@ -130,13 +130,13 @@ describe('nx_project_details filter', () => {
130130 expect ( text ) . not . toContain ( '"options"' ) ;
131131 } ) ;
132132
133- it ( 'should filter to tags array' , ( ) => {
133+ it ( 'should select to tags array' , ( ) => {
134134 const result = invokeMCPInspectorCLI (
135135 testWorkspacePath ,
136136 '--method tools/call' ,
137137 '--tool-name nx_project_details' ,
138138 `--tool-arg projectName="${ workspaceName } "` ,
139- '--tool-arg filter ="tags"' ,
139+ '--tool-arg select ="tags"' ,
140140 ) ;
141141
142142 expect ( result . content ) . toHaveLength ( 1 ) ;
@@ -147,13 +147,13 @@ describe('nx_project_details filter', () => {
147147 expect ( text ) . toContain ( ']' ) ;
148148 } ) ;
149149
150- it ( 'should filter to array element using bracket notation tags[0]' , ( ) => {
150+ it ( 'should select to array element using bracket notation tags[0]' , ( ) => {
151151 const result = invokeMCPInspectorCLI (
152152 testWorkspacePath ,
153153 '--method tools/call' ,
154154 '--tool-name nx_project_details' ,
155155 `--tool-arg projectName="${ workspaceName } "` ,
156- '--tool-arg filter ="tags[0]"' ,
156+ '--tool-arg select ="tags[0]"' ,
157157 ) ;
158158
159159 expect ( result . content ) . toHaveLength ( 1 ) ;
@@ -169,7 +169,7 @@ describe('nx_project_details filter', () => {
169169 '--method tools/call' ,
170170 '--tool-name nx_project_details' ,
171171 `--tool-arg projectName="${ workspaceName } "` ,
172- '--tool-arg filter ="nonexistent.path.to.nowhere"' ,
172+ '--tool-arg select ="nonexistent.path.to.nowhere"' ,
173173 ) ;
174174
175175 expect ( result . isError ) . toBe ( true ) ;
@@ -184,7 +184,7 @@ describe('nx_project_details filter', () => {
184184 '--method tools/call' ,
185185 '--tool-name nx_project_details' ,
186186 '--tool-arg projectName="nonexistent-project"' ,
187- '--tool-arg filter ="root"' ,
187+ '--tool-arg select ="root"' ,
188188 ) ;
189189
190190 expect ( result . isError ) . toBe ( true ) ;
0 commit comments