We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cbfaa03 commit 0001ab9Copy full SHA for 0001ab9
packages/kit/src/exports/hooks/sequence.spec.js
@@ -1,11 +1,18 @@
1
import { assert, expect, test } from 'vitest';
2
import { sequence } from './sequence.js';
3
import { installPolyfills } from '../node/polyfills.js';
4
+import { EVENT_STATE } from '../../runtime/server/event-state.js';
5
6
installPolyfills();
7
8
const dummy_event = /** @type {import('@sveltejs/kit').RequestEvent} */ ({
- tracing: { root: {} }
9
+ tracing: { root: {} },
10
+ [EVENT_STATE]: {
11
+ tracing: {
12
+ // @ts-expect-error
13
+ record_span: ({ fn }) => fn()
14
+ }
15
16
});
17
18
test('applies handlers in sequence', async () => {
0 commit comments