File tree 2 files changed +16
-0
lines changed
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 1
1
import { Scope } from '@sentry/hub' ;
2
2
import { act , render } from '@testing-library/svelte' ;
3
3
4
+ // eslint-disable-next-line import/no-unresolved Eslint doesn't know about Svelte components
4
5
import DummyComponent from './components/Dummy.svelte' ;
5
6
6
7
let returnUndefinedTransaction = false ;
You can’t perform that action at this time.
0 commit comments