(comments: Record<string, LineComment[]> = {})
| 166 | } |
| 167 | |
| 168 | export function createCommentSessionForTest(comments: Record<string, LineComment[]> = {}) { |
| 169 | const [store, setStore] = createStore<CommentStore>({ comments }) |
| 170 | return createCommentSessionState(store, setStore) |
| 171 | } |
| 172 | |
| 173 | function createCommentSession(scope: ServerScope, dir: string, id: string | undefined) { |
| 174 | const legacy = `${dir}/comments${id ? "/" + id : ""}.v1` |
no test coverage detected