11// npx vitest run src/__tests__/playwright-mcp-validation.test.ts
22
3+ /* eslint-disable @typescript-eslint/no-explicit-any */
4+
35import * as yaml from "yaml"
46import * as fs from "fs/promises"
57import * as path from "path"
@@ -12,7 +14,7 @@ const __dirname = path.dirname(__filename)
1214/**
1315 * Test suite for validating the corrected Playwright MCP template
1416 * against the Roo Code MCP marketplace schema requirements.
15- *
17+ *
1618 * This validates:
1719 * - Schema compliance with mcpMarketplaceItemSchema
1820 * - Parameter structure and substitution logic
@@ -22,7 +24,9 @@ const __dirname = path.dirname(__filename)
2224 */
2325describe ( "Playwright MCP Template Validation" , ( ) => {
2426 let templateContent : string
27+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
2528 let parsedTemplate : any
29+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
2630 let playwrightMcpItem : any
2731
2832 beforeEach ( async ( ) => {
@@ -95,6 +99,7 @@ describe("Playwright MCP Template Validation", () => {
9599 } )
96100
97101 it ( "should have Node.js/NPM installation method" , ( ) => {
102+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
98103 const nodeMethod = playwrightMcpItem . content . find ( ( method : any ) => method . name === "Node.js/NPM" )
99104 expect ( nodeMethod ) . toBeDefined ( )
100105 expect ( nodeMethod . content ) . toBeDefined ( )
@@ -103,6 +108,7 @@ describe("Playwright MCP Template Validation", () => {
103108 } )
104109
105110 it ( "should have Docker installation method" , ( ) => {
111+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
106112 const dockerMethod = playwrightMcpItem . content . find ( ( method : any ) => method . name === "Docker" )
107113 expect ( dockerMethod ) . toBeDefined ( )
108114 expect ( dockerMethod . content ) . toBeDefined ( )
@@ -115,6 +121,7 @@ describe("Playwright MCP Template Validation", () => {
115121 * that can be parsed and contains the required MCP server configuration structure
116122 */
117123 it ( "should have valid JSON content for each installation method" , ( ) => {
124+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
118125 playwrightMcpItem . content . forEach ( ( method : any ) => {
119126 expect ( ( ) => {
120127 const parsed = JSON . parse ( method . content )
0 commit comments