MCPcopy
hub / github.com/react-bootstrap/react-bootstrap / getToast

Function getToast

test/ToastSpec.tsx:6–16  ·  view source on GitHub ↗
({
  delay = 500,
  onCloseSpy,
  autohide = true,
  show = true,
})

Source from the content-addressed store, hash-verified

4import Toast from '../src/Toast';
5
6const getToast = ({
7 delay = 500,
8 onCloseSpy,
9 autohide = true,
10 show = true,
11}) => (
12 <Toast delay={delay} onClose={onCloseSpy} show={show} autohide={autohide}>
13 <Toast.Header>header-content</Toast.Header>
14 <Toast.Body>body-content</Toast.Body>
15 </Toast>
16);
17
18describe('<Toast>', () => {
19 let clock: ReturnType<typeof vi.useFakeTimers>;

Callers 1

ToastSpec.tsxFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…