(plugins: Array<Plugin>, name: string)
| 21 | |
| 22 | // Helper to find a plugin by name from the array returned by devtools() |
| 23 | function findPlugin(plugins: Array<Plugin>, name: string): Plugin | undefined { |
| 24 | return plugins.find((p) => p.name === name) |
| 25 | } |
| 26 | |
| 27 | // Helper to create a mock Vite server |
| 28 | function createMockServer( |