(factory: Function, options: Options = {})
| 578 | // Helper to get the plugin object from the factory |
| 579 | // The factory signature is (options, meta) per unplugin's UnpluginFactory type |
| 580 | function getPlugin(factory: Function, options: Options = {}): any { |
| 581 | return factory(options, {framework: 'vite'}) |
| 582 | } |
| 583 | |
| 584 | test('unpluginFactory returns correct plugin shape', async () => { |
| 585 | const {unpluginFactory} = await import('../index.js') |
no test coverage detected