()
| 3 | import { createSveltePanel } from './panel' |
| 4 | |
| 5 | // Minimal stand-in for a class-based devtools core. |
| 6 | function makeCoreClass() { |
| 7 | const coreMount = vi.fn() |
| 8 | const coreUnmount = vi.fn() |
| 9 | const construct = vi.fn<(...args: Array<unknown>) => void>() |
| 10 | class Core { |
| 11 | mount = coreMount |
| 12 | unmount = coreUnmount |
| 13 | constructor(...args: Array<unknown>) { |
| 14 | construct(...args) |
| 15 | } |
| 16 | } |
| 17 | return { Core, construct, coreMount, coreUnmount } |
| 18 | } |
| 19 | |
| 20 | describe('createSveltePanel', () => { |