File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change 1+ <script >
2+ import { onMount , beforeUpdate , afterUpdate } from ' svelte' ;
3+ import * as Sentry from ' ../../src/index' ;
4+
5+ // Pass options to trackComponent as props of this component
6+ export let options;
7+
8+ Sentry .trackComponent (options);
9+
10+ // onMount(() => console.log('>mount'));
11+ // beforeUpdate(() => console.log('>beforeupdate'));
12+ // afterUpdate(() => console.log('>afterupdate'));
13+ </script >
14+
15+ <h1 >Hi, I'm a dummy component for testing</h1 >
Original file line number Diff line number Diff line change 11import { Scope } from '@sentry/hub' ;
22import { act , render } from '@testing-library/svelte' ;
33
4+ // eslint-disable-next-line import/no-unresolved Eslint doesn't know about Svelte components
45import DummyComponent from './components/Dummy.svelte' ;
56
67let returnUndefinedTransaction = false ;
You can’t perform that action at this time.
0 commit comments