Fix html content detection regex to not include markdown autolinks (#3720)
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import '@testing-library/jest-dom';
|
||||
import { vi } from 'vitest';
|
||||
|
||||
// Mock console methods to avoid noise in tests
|
||||
// eslint-disable-next-line no-undef
|
||||
global.console = {
|
||||
...console,
|
||||
log: vi.fn(),
|
||||
warn: vi.fn(),
|
||||
error: vi.fn(),
|
||||
};
|
||||
|
||||
// Mock window.navigator.clipboard for copy functionality tests
|
||||
Object.assign(navigator, {
|
||||
clipboard: {
|
||||
writeText: vi.fn(() => Promise.resolve()),
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user