• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

jcubic / 10xDevs / 18294494481

06 Oct 2025 09:08PM UTC coverage: 39.42%. Remained the same
18294494481

push

github

jcubic
refactor MarkdownEditor => Editor

26 of 31 branches covered (83.87%)

Branch coverage included in aggregate %.

3 of 7 new or added lines in 3 files covered. (42.86%)

246 of 659 relevant lines covered (37.33%)

1.37 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

4.0
/src/components/examples/SimpleMarkdownExample.tsx
1
'use client';
1✔
2

3
import { useState, useEffect } from 'react';
×
4
import { Box, Heading, VStack } from '@chakra-ui/react';
×
NEW
5
import Editor from '@/components/Editor';
×
6

7
export default function SimpleMarkdownExample() {
×
8
  const [content, setContent] = useState('Loading...');
×
9

10
  useEffect(() => {
×
11
    fetch('/samples/simple.md')
×
12
      .then((response) => response.text())
×
13
      .then((text) => setContent(text))
×
14
      .catch(() => setContent('# Loading failed\n\nUnable to load sample markdown.'));
×
15
  }, []);
×
16

17
  return (
×
18
    <Box p={6} maxW="800px" mx="auto">
×
19
      <VStack gap={4} alignItems="stretch">
×
20
        <Heading size="md">Simple Markdown Editor</Heading>
×
21

NEW
22
        <Editor
×
23
          value={content}
×
24
          onChange={setContent}
×
25
          placeholder="Start typing your markdown here..."
×
26
          height="500px"
×
27
        />
×
28
      </VStack>
×
29
    </Box>
×
30
  );
31
}
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc