mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-01 17:03:15 +00:00
fix(deps): keep Lucide SVG markup and Undici tests compatible
Build standalone SVG icons without a React context. Use accessible actions in tests and give the mocked dispatchers the interface the adapter expects.
This commit is contained in:
@@ -14,6 +14,7 @@ const built = vi.hoisted(() => ({
|
||||
vi.mock('undici', async (importOriginal) => ({
|
||||
...(await importOriginal<typeof import('undici')>()),
|
||||
Agent: class {
|
||||
dispatch = vi.fn();
|
||||
constructor(readonly opts: unknown) {
|
||||
built.agents.push(opts);
|
||||
}
|
||||
@@ -23,6 +24,7 @@ vi.mock('undici', async (importOriginal) => ({
|
||||
}
|
||||
},
|
||||
ProxyAgent: class {
|
||||
dispatch = vi.fn();
|
||||
constructor(opts: Record<string, unknown>) {
|
||||
built.proxies.push(opts);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user