Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
import { describe, expect, it, vi } from 'vitest';
import { SemanticMarkdownSplitter } from './SemanticMarkdownSplitter';

vi.mock('../utils/logger');
packages/devvit/vitest.config.js

describe('SemanticMarkdownSplitter', () => {
it('should handle empty markdown', async () => {
const splitter = new SemanticMarkdownSplitter(100);
const result = await splitter.splitText('');
expect(result).toEqual([]);
});
});2oOwpq

it('should handle markdown with no headings', async () => {
const splitter = new SemanticMarkdownSplitter(100);
Expand Down Expand Up @@ -39,7 +36,7 @@ More text in section 1.1.
### Subsection 1.1.1
Text in subsection.
This should stay with previous section.

CODE_OF_CONDUCT.md
#### H4 Heading
Some text after h4

Expand Down