add changeset, fix failing tests

pull/16060/head
ComputerGuy 4 months ago
parent ce2d1b3336
commit 115384c707

@ -0,0 +1,5 @@
---
'svelte': minor
---
feat: add source name logging to `$inspect.trace`

@ -35,7 +35,7 @@ export default test({
assert.deepEqual(normalise_trace_logs(logs), [ assert.deepEqual(normalise_trace_logs(logs), [
{ log: 'iife', highlighted: false }, { log: 'iife', highlighted: false },
{ log: '$state', highlighted: true }, { log: 'count — $state', highlighted: true },
{ log: 0 }, { log: 0 },
{ log: 'effect', highlighted: false } { log: 'effect', highlighted: false }
]); ]);
@ -48,7 +48,7 @@ export default test({
assert.deepEqual(normalise_trace_logs(logs), [ assert.deepEqual(normalise_trace_logs(logs), [
{ log: 'iife', highlighted: false }, { log: 'iife', highlighted: false },
{ log: '$state', highlighted: true }, { log: 'count — $state', highlighted: true },
{ log: 1 }, { log: 1 },
{ log: 'effect', highlighted: false } { log: 'effect', highlighted: false }
]); ]);

@ -35,7 +35,7 @@ export default test({
assert.deepEqual(normalise_trace_logs(logs), [ assert.deepEqual(normalise_trace_logs(logs), [
{ log: 'effect', highlighted: false }, { log: 'effect', highlighted: false },
{ log: '$state', highlighted: true }, { log: 'checked — $state', highlighted: true },
{ log: false } { log: false }
]); ]);
@ -53,19 +53,19 @@ export default test({
assert.deepEqual(normalise_trace_logs(logs), [ assert.deepEqual(normalise_trace_logs(logs), [
{ log: 'effect', highlighted: false }, { log: 'effect', highlighted: false },
{ log: '$state', highlighted: true }, { log: 'checked — $state', highlighted: true },
{ log: true }, { log: true },
{ log: '$state', highlighted: true }, { log: 'count — $state', highlighted: true },
{ log: 1 }, { log: 1 },
{ log: 'effect', highlighted: false }, { log: 'effect', highlighted: false },
{ log: '$state', highlighted: false }, { log: 'checked — $state', highlighted: false },
{ log: true }, { log: true },
{ log: '$state', highlighted: true }, { log: 'count — $state', highlighted: true },
{ log: 2 }, { log: 2 },
{ log: 'effect', highlighted: false }, { log: 'effect', highlighted: false },
{ log: '$state', highlighted: false }, { log: 'checked — $state', highlighted: false },
{ log: true }, { log: true },
{ log: '$state', highlighted: true }, { log: 'count — $state', highlighted: true },
{ log: 3 } { log: 3 }
]); ]);
} }

@ -35,11 +35,11 @@ export default test({
assert.deepEqual(normalise_trace_logs(logs), [ assert.deepEqual(normalise_trace_logs(logs), [
{ log: 'effect', highlighted: false }, { log: 'effect', highlighted: false },
{ log: '$derived', highlighted: true }, { log: 'double — $derived', highlighted: true },
{ log: 0 }, { log: 0 },
{ log: '$state', highlighted: true }, { log: 'count — $state', highlighted: true },
{ log: 0 }, { log: 0 },
{ log: '$state', highlighted: true }, { log: 'checked — $state', highlighted: true },
{ log: false } { log: false }
]); ]);
@ -53,11 +53,11 @@ export default test({
assert.deepEqual(normalise_trace_logs(logs), [ assert.deepEqual(normalise_trace_logs(logs), [
{ log: 'effect', highlighted: false }, { log: 'effect', highlighted: false },
{ log: '$derived', highlighted: true }, { log: 'double — $derived', highlighted: true },
{ log: 2 }, { log: 2 },
{ log: '$state', highlighted: true }, { log: 'count — $state', highlighted: true },
{ log: 1 }, { log: 1 },
{ log: '$state', highlighted: false }, { log: 'checked — $state', highlighted: false },
{ log: false } { log: false }
]); ]);
@ -71,11 +71,11 @@ export default test({
assert.deepEqual(normalise_trace_logs(logs), [ assert.deepEqual(normalise_trace_logs(logs), [
{ log: 'effect', highlighted: false }, { log: 'effect', highlighted: false },
{ log: '$derived', highlighted: false }, { log: 'double — $derived', highlighted: false },
{ log: 2 }, { log: 2 },
{ log: '$state', highlighted: false }, { log: 'count — $state', highlighted: false },
{ log: 1 }, { log: 1 },
{ log: '$state', highlighted: true }, { log: 'checked — $state', highlighted: true },
{ log: true } { log: true }
]); ]);
@ -88,9 +88,9 @@ export default test({
assert.deepEqual(normalise_trace_logs(logs), [ assert.deepEqual(normalise_trace_logs(logs), [
{ log: 'effect', highlighted: false }, { log: 'effect', highlighted: false },
{ log: '$derived', highlighted: true }, { log: 'double — $derived', highlighted: true },
{ log: 4 }, { log: 4 },
{ log: '$state', highlighted: true }, { log: 'count — $state', highlighted: true },
{ log: 2 } { log: 2 }
]); ]);
} }

Loading…
Cancel
Save