🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
// @vitest-environment node
import * as fs from 'node:fs';
import { join } from 'node:path';
import { MarkdownLoader } from '../index';
describe('MarkdownLoader', () => {
it('should run', async () => {
const content = fs.readFileSync(join(__dirname, `./demo.mdx`), 'utf8');
const result = await MarkdownLoader(content);
expect(result.length).toBeGreaterThan(0);
for (const chunk of result) {
expect(chunk.pageContent).toBeTruthy();
expect(chunk.metadata.loc.lines).toBeDefined();
}
});
});