(message: string, tagName: string)
| 6 | import { DEFAULT_RUNTIME_CONFIG } from "@/common/constants/workspace"; |
| 7 | |
| 8 | const extractTagContent = (message: string, tagName: string): string | null => { |
| 9 | const pattern = new RegExp(`<${tagName}>\\s*([\\s\\S]*?)\\s*</${tagName}>`, "i"); |
| 10 | const match = pattern.exec(message); |
| 11 | return match ? match[1].trim() : null; |
| 12 | }; |
| 13 | import { describe, test, expect, beforeEach, afterEach, spyOn, type Mock } from "bun:test"; |
| 14 | import { LocalRuntime } from "@/node/runtime/LocalRuntime"; |
| 15 |
no test coverage detected