(filename: string, iconConfig: { icon?: string })
| 131 | }); |
| 132 | |
| 133 | function createTestManifest(filename: string, iconConfig: { icon?: string }) { |
| 134 | const manifest = { |
| 135 | manifest_version: "0.3", |
| 136 | name: "test-extension", |
| 137 | version: "1.0.0", |
| 138 | description: "Test extension for icon validation", |
| 139 | author: { |
| 140 | name: "Test Author", |
| 141 | }, |
| 142 | server: { |
| 143 | type: "node", |
| 144 | entry_point: "server/index.js", |
| 145 | mcp_config: { |
| 146 | command: "node", |
| 147 | args: ["${__dirname}/server/index.js"], |
| 148 | }, |
| 149 | }, |
| 150 | ...iconConfig, |
| 151 | }; |
| 152 | |
| 153 | fs.writeFileSync( |
| 154 | join(testFixturesDir, filename), |
| 155 | JSON.stringify(manifest, null, 2), |
| 156 | ); |
| 157 | } |
| 158 | |
| 159 | describe("Valid icon configurations", () => { |
| 160 | it("should pass validation with a valid local PNG icon", () => { |
no outgoing calls
no test coverage detected
searching dependent graphs…