Skip to content

Commit f89ae88

Browse files
fix(web): use a compatible parser gate in the browser test
1 parent 0c0593f commit f89ae88

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

‎apps/web/src/components/ChatMarkdown.browser.test.tsx‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,13 @@ function fileOptions(container: HTMLElement) {
9292
describe("ChatMarkdown bare anchor placeholders", () => {
9393
// Exercise the cold import before another render caches the raw HTML pipeline.
9494
it("preserves paired HTML as text while loading, then renders sanitized content", async () => {
95-
const parserReady = Promise.withResolvers<void>();
95+
let resolveParserReady = () => {};
96+
const parserReady = {
97+
promise: new Promise<void>((resolve) => {
98+
resolveParserReady = resolve;
99+
}),
100+
resolve: () => resolveParserReady(),
101+
};
96102
vi.doMock(import("@t3tools/shared/markdownRawPipeline"), async (original) => {
97103
await parserReady.promise;
98104
return original();

0 commit comments

Comments
 (0)