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:
@@ -20,7 +20,14 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
|
||||
* spread init the lint rule could not see into, waited undici's five minutes
|
||||
* for a hung host and read whatever size the host sent back into memory.
|
||||
*/
|
||||
const { AgentMock } = vi.hoisted(() => ({ AgentMock: vi.fn() }));
|
||||
const { AgentMock } = vi.hoisted(() => ({
|
||||
AgentMock: vi.fn(
|
||||
class {
|
||||
dispatch = vi.fn();
|
||||
constructor(_options: Record<string, unknown>) {}
|
||||
},
|
||||
),
|
||||
}));
|
||||
vi.mock('undici', async (importOriginal) => ({
|
||||
...(await importOriginal<typeof import('undici')>()),
|
||||
Agent: AgentMock,
|
||||
|
||||
Reference in New Issue
Block a user